Skip to content

Commit 73c4b09

Browse files
committed
support VERCEL_IMMUTABLE_ASSETS env
1 parent 4472a85 commit 73c4b09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/presets/vercel/preset.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const vercel = defineNitroPreset(
2626
},
2727
vercel: {
2828
skewProtection: !!process.env.VERCEL_SKEW_PROTECTION_ENABLED,
29-
immutableAssets: false,
29+
immutableAssets: !!process.env.VERCEL_IMMUTABLE_ASSETS,
3030
cronHandlerRoute: "/_vercel/cron",
3131
},
3232
output: {
@@ -139,7 +139,7 @@ const vercelStatic = defineNitroPreset(
139139
},
140140
vercel: {
141141
skewProtection: !!process.env.VERCEL_SKEW_PROTECTION_ENABLED,
142-
immutableAssets: true,
142+
immutableAssets: !!process.env.VERCEL_IMMUTABLE_ASSETS,
143143
},
144144
output: {
145145
dir: "{{ rootDir }}/.vercel/output",

0 commit comments

Comments
 (0)