Commit a7912af 1 parent 4ab5e05 commit a7912af Copy full SHA for a7912af
File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -561,7 +561,7 @@ export default defineNuxtModule<ModuleOptions>({
561
561
562
562
contentContext . defaultLocale = contentContext . defaultLocale || contentContext . locales [ 0 ]
563
563
564
- // Generate cache integerity based on content context
564
+ // Generate cache integrity based on content context
565
565
const cacheIntegrity = hash ( {
566
566
locales : options . locales ,
567
567
options : options . defaultLocale ,
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ export const fetchContentNavigation = async (queryBuilder?: QueryBuilder | Query
10
10
// When params is an instance of QueryBuilder then we need to pick the params explicitly
11
11
const params : QueryBuilderParams = typeof queryBuilder ?. params === 'function' ? queryBuilder . params ( ) : queryBuilder
12
12
13
- const apiPath = withContentBase ( params ? `/navigation/${ hash ( params ) } .${ content . integerity } .json` : '/navigation' )
13
+ const _apiPath = params ? `/navigation/${ hash ( params ) } ` : '/navigation/'
14
+ const apiPath = withContentBase ( process . dev ? _apiPath : `${ _apiPath } .${ content . integrity } .json` )
14
15
15
16
// Add `prefetch` to `<head>` in production
16
17
if ( ! process . dev && process . server ) {
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export const createQueryFetch = <T = ParsedContent>(path?: string) => async (que
27
27
28
28
const params = query . params ( )
29
29
30
- const apiPath = withContentBase ( process . dev ? '/query' : `/query/${ hash ( params ) } .${ content . integerity } .json` )
30
+ const apiPath = withContentBase ( process . dev ? '/query' : `/query/${ hash ( params ) } .${ content . integrity } .json` )
31
31
32
32
// Prefetch the query
33
33
if ( ! process . dev && process . server ) {
You can’t perform that action at this time.
0 commit comments