Skip to content

Commit 9c0525e

Browse files
feat: use hosting config
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
1 parent 3c19d02 commit 9c0525e

14 files changed

Lines changed: 56 additions & 28 deletions

File tree

templates/angular-example/juno.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export default defineConfig({
77
development: "<DEV_SATELLITE_ID>",
88
production: "<PROD_SATELLITE_ID>",
99
},
10-
source: "dist/angular-example/browser",
11-
predeploy: ["npm run build"],
10+
hosting: {
11+
source: "dist/angular-example/browser",
12+
predeploy: ["npm run build"],
13+
}
1214
},
1315
});

templates/angular-starter/juno.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export default defineConfig({
77
development: "<DEV_SATELLITE_ID>",
88
production: "<PROD_SATELLITE_ID>",
99
},
10-
source: "dist/angular-example/browser",
11-
predeploy: ["npm run build"],
10+
hosting: {
11+
source: "dist/angular-example/browser",
12+
predeploy: ["npm run build"],
13+
}
1214
},
1315
});

templates/astro-starter/juno.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export default defineConfig({
77
development: "<DEV_SATELLITE_ID>",
88
production: "<PROD_SATELLITE_ID>",
99
},
10-
source: "dist",
11-
predeploy: ["npm run build"],
10+
hosting: {
11+
source: "dist",
12+
predeploy: ["npm run build"],
13+
}
1214
},
1315
});

templates/nextjs-example/juno.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export default defineConfig({
77
development: "<DEV_SATELLITE_ID>",
88
production: "<PROD_SATELLITE_ID>",
99
},
10-
source: "out",
11-
predeploy: ["npm run build"],
10+
hosting: {
11+
source: "out",
12+
predeploy: ["npm run build"],
13+
}
1214
},
1315
});

templates/nextjs-starter/juno.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export default defineConfig({
77
development: "<DEV_SATELLITE_ID>",
88
production: "<PROD_SATELLITE_ID>",
99
},
10-
source: "out",
11-
predeploy: ["npm run build"],
10+
hosting: {
11+
source: "out",
12+
predeploy: ["npm run build"],
13+
}
1214
},
1315
});

templates/react-example/juno.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export default defineConfig({
77
development: "<DEV_SATELLITE_ID>",
88
production: "<PROD_SATELLITE_ID>",
99
},
10-
source: "dist",
11-
predeploy: ["npm run build"],
10+
hosting: {
11+
source: "dist",
12+
predeploy: ["npm run build"],
13+
}
1214
},
1315
});

templates/react-starter/juno.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export default defineConfig({
77
development: "<DEV_SATELLITE_ID>",
88
production: "<PROD_SATELLITE_ID>",
99
},
10-
source: "dist",
11-
predeploy: ["npm run build"],
10+
hosting: {
11+
source: "dist",
12+
predeploy: ["npm run build"],
13+
}
1214
},
1315
});

templates/react-ts-example/juno.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ export default defineConfig({
66
development: "<DEV_SATELLITE_ID>",
77
production: "<PROD_SATELLITE_ID>",
88
},
9-
source: "dist",
10-
predeploy: ["npm run build"],
9+
hosting: {
10+
source: "dist",
11+
predeploy: ["npm run build"],
12+
}
1113
},
1214
});

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ export default defineConfig({
66
development: "<DEV_SATELLITE_ID>",
77
production: "<PROD_SATELLITE_ID>",
88
},
9-
source: "dist",
10-
predeploy: ["npm run build"],
9+
hosting: {
10+
source: "dist",
11+
predeploy: ["npm run build"],
12+
}
1113
},
1214
});

templates/sveltekit-example/juno.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ export default defineConfig({
66
development: '<DEV_SATELLITE_ID>',
77
production: '<PROD_SATELLITE_ID>'
88
},
9-
source: 'build',
10-
predeploy: ['npm run build']
9+
hosting: {
10+
source: 'build',
11+
predeploy: ['npm run build']
12+
}
1113
}
1214
});

0 commit comments

Comments
 (0)