Skip to content

Commit d063592

Browse files
feat: group config with hosting
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
1 parent d4abbbd commit d063592

1 file changed

Lines changed: 17 additions & 15 deletions

File tree

juno.config.ts

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -248,24 +248,26 @@ const redirects: StorageConfigRedirect[] = [
248248
export default defineConfig({
249249
satellite: {
250250
id: "ucnx3-aqaaa-aaaal-ab3ea-cai",
251-
source: "build",
251+
hosting: {
252+
source: "build",
253+
precompress: [
254+
{
255+
pattern: "**/*.+(js|mjs|css)",
256+
algorithm: "brotli",
257+
mode: "replace"
258+
},
259+
{
260+
pattern: "**/*.html",
261+
algorithm: "brotli",
262+
mode: "both"
263+
}
264+
],
265+
predeploy: ["npm run build"]
266+
},
252267
storage: {
253268
headers,
254269
redirects
255-
},
256-
precompress: [
257-
{
258-
pattern: "**/*.+(js|mjs|css)",
259-
algorithm: "brotli",
260-
mode: "replace"
261-
},
262-
{
263-
pattern: "**/*.html",
264-
algorithm: "brotli",
265-
mode: "both"
266-
}
267-
],
268-
predeploy: ["npm run build"]
270+
}
269271
},
270272
orbiter: {
271273
id: "3iier-sqaaa-aaaal-aczaa-cai"

0 commit comments

Comments
 (0)