Skip to content

Commit dcbec14

Browse files
committed
add routeRules
1 parent d54b237 commit dcbec14

File tree

1 file changed

+7
-0
lines changed
  • packages/start-nitro-v2-vite-plugin/src

1 file changed

+7
-0
lines changed

packages/start-nitro-v2-vite-plugin/src/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ export function nitroV2Plugin(nitroConfig?: UserNitroConfig): PluginOption {
8484
},
8585
...nitroConfig,
8686
dev: false,
87+
routeRules: {
88+
"/_build/assets/**": {
89+
headers: {
90+
"cache-control": "public, immutable, max-age=31536000",
91+
},
92+
},
93+
},
8794
publicAssets: [
8895
{
8996
dir: client.config.build.outDir,

0 commit comments

Comments
 (0)