Skip to content

Commit fd1c56d

Browse files
committed
chore: typo
1 parent 56c5228 commit fd1c56d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/module.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ export default defineNuxtModule<ModuleOptions>({
378378
contentContext.defaultLocale = contentContext.defaultLocale || contentContext.locales[0]
379379

380380
// Generate cache integerity based on content context
381-
const cacheIntegerity = hash({
381+
const cacheIntegrity = hash({
382382
locales: options.locales,
383383
options: options.defaultLocale,
384384
markdown: options.markdown,
@@ -398,7 +398,7 @@ export default defineNuxtModule<ModuleOptions>({
398398
// Context will use in server
399399
nuxt.options.runtimeConfig.content = {
400400
cacheVersion: CACHE_VERSION,
401-
cacheIntegerity,
401+
cacheIntegrity,
402402
...contentContext as any
403403
}
404404

@@ -454,7 +454,7 @@ interface ModulePrivateRuntimeConfig {
454454
* This is used to invalidate cache when the format changes.
455455
*/
456456
cacheVersion: string;
457-
cacheIntegerity: string;
457+
cacheIntegrity: string;
458458
}
459459

460460
declare module '@nuxt/schema' {

src/runtime/server/storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const getContent = async (event: CompatibilityEvent, id: string): Promise
9999
meta,
100100
// Add Content version to the hash, to revalidate the cache on content update
101101
version: contentConfig.cacheVersion,
102-
integerity: contentConfig.cacheIntegrity
102+
integrity: contentConfig.cacheIntegrity
103103
})
104104
if (cached?.hash === hash) {
105105
return cached.parsed as ParsedContent

0 commit comments

Comments
 (0)