Skip to content

Commit 7df1049

Browse files
feat: use juno config in starters
1 parent cf439bd commit 7df1049

17 files changed

+91
-120
lines changed
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { defineConfig } from "@junobuild/config";
2+
3+
/** @type {import('@junobuild/config').JunoConfig} */
4+
export default defineConfig({
5+
satellite: {
6+
ids: {
7+
development: '<DEV_SATELLITE_ID>',
8+
production: '<PROD_SATELLITE_ID>'
9+
},
10+
source: "dist/angular-example/browser",
11+
predeploy: ["npm run build"],
12+
},
13+
});

templates/angular-starter/juno.dev.config.js

-11
This file was deleted.
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { defineConfig } from "@junobuild/config";
2+
3+
/** @type {import('@junobuild/config').JunoConfig} */
4+
export default defineConfig({
5+
satellite: {
6+
ids: {
7+
development: '<DEV_SATELLITE_ID>',
8+
production: '<PROD_SATELLITE_ID>'
9+
},
10+
source: "dist",
11+
predeploy: ["npm run build"],
12+
},
13+
});

templates/astro-starter/juno.dev.config.mjs

-11
This file was deleted.
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
import { defineConfig } from "@junobuild/config";
3+
4+
/** @type {import('@junobuild/config').JunoConfig} */
5+
export default defineConfig({
6+
satellite: {
7+
ids: {
8+
development: "<DEV_SATELLITE_ID>",
9+
},
10+
source: "out",
11+
predeploy: ["npm run build"],
12+
},
13+
});

templates/nextjs-starter/juno.dev.config.ts

-10
This file was deleted.
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { defineConfig } from "@junobuild/config";
2+
3+
/** @type {import('@junobuild/config').JunoConfig} */
4+
export default defineConfig({
5+
satellite: {
6+
ids: {
7+
development: "<DEV_SATELLITE_ID>",
8+
},
9+
source: "dist",
10+
predeploy: ["npm run build"],
11+
},
12+
});

templates/react-starter/juno.dev.config.js

-11
This file was deleted.
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from "@junobuild/config";
2+
3+
export default defineConfig({
4+
satellite: {
5+
ids: {
6+
development: "<DEV_SATELLITE_ID>",
7+
},
8+
source: "dist",
9+
predeploy: ["npm run build"],
10+
},
11+
});

templates/react-ts-starter/juno.dev.config.ts

-10
This file was deleted.

templates/react-workshop/docker-compose.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ services:
1111
volumes:
1212
# Persistent volume to store internal state
1313
- juno_skylab:/juno/.juno
14-
# Local dev config file to customize Satellite behavior
15-
- ./juno.dev.config.js:/juno/juno.dev.config.js
14+
# Your Juno configuration file.
15+
# Notably used to provide your development Satellite ID to the emulator.
16+
- ./juno.config.mjs:/juno/juno.config.mjs
1617
# Shared folder for deploying and hot-reloading serverless functions
1718
# For example, when building functions in TypeScript, the output `.mjs` files are placed here.
1819
# The container then bundles them into your Satellite WASM (also placed here),

templates/react-workshop/juno.config.mjs

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import { defineConfig } from "@junobuild/config";
33
/** @type {import('@junobuild/config').JunoConfig} */
44
export default defineConfig({
55
satellite: {
6-
// TODO: STEP_1_CONFIGURATION
7-
id: "replace-satellite-id",
6+
ids: {
7+
development: "<DEV_SATELLITE_ID>",
8+
},
89
source: "dist",
10+
predeploy: ["npm run build"],
911
},
1012
});

templates/react-workshop/juno.dev.config.js

-27
This file was deleted.
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from '@junobuild/config';
2+
3+
export default defineConfig({
4+
satellite: {
5+
ids: {
6+
development: '<DEV_SATELLITE_ID>'
7+
},
8+
source: 'build',
9+
predeploy: ['npm run build']
10+
}
11+
});

templates/sveltekit-starter/juno.dev.config.ts

-10
This file was deleted.

templates/vue-starter/juno.config.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from "@junobuild/config";
2+
3+
export default defineConfig({
4+
satellite: {
5+
ids: {
6+
development: "<DEV_SATELLITE_ID>",
7+
},
8+
source: "dist",
9+
predeploy: ["npm run build"],
10+
},
11+
});

templates/vue-starter/juno.dev.config.ts

-26
This file was deleted.

0 commit comments

Comments
 (0)