Skip to content

Commit

Permalink
fix(build): invalid cache route handler
Browse files Browse the repository at this point in the history
  • 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
Original file line number Diff line number Diff line change
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.