Skip to content

Commit ae138a8

Browse files
committed
fix(build): invalid cache route handler
1 parent a7912af commit ae138a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/module.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,9 @@ export default defineNuxtModule<ModuleOptions>({
326326
},
327327
{
328328
method: 'get',
329-
route: `${options.api.baseURL}/cache.json`,
329+
route: nuxt.options.dev
330+
? `${options.api.baseURL}/cache.json`
331+
: `${options.api.baseURL}/cache.${buildIntegrity}.json`,
330332
handler: resolveRuntimeModule('./server/api/cache')
331333
}
332334
)

0 commit comments

Comments
 (0)