Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(build): invalid cache route handler
  • Loading branch information
farnabaz committed Dec 5, 2022
1 parent a7912af commit ae138a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/module.ts
Expand Up @@ -326,7 +326,9 @@ export default defineNuxtModule<ModuleOptions>({
},
{
method: 'get',
route: `${options.api.baseURL}/cache.json`,
route: nuxt.options.dev
? `${options.api.baseURL}/cache.json`
: `${options.api.baseURL}/cache.${buildIntegrity}.json`,
handler: resolveRuntimeModule('./server/api/cache')
}
)
Expand Down

0 comments on commit ae138a8

Please sign in to comment.