Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Jun 10, 2022
1 parent 56c5228 commit fd1c56d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/module.ts
Expand Up @@ -378,7 +378,7 @@ export default defineNuxtModule<ModuleOptions>({
contentContext.defaultLocale = contentContext.defaultLocale || contentContext.locales[0]

// Generate cache integerity based on content context
const cacheIntegerity = hash({
const cacheIntegrity = hash({
locales: options.locales,
options: options.defaultLocale,
markdown: options.markdown,
Expand All @@ -398,7 +398,7 @@ export default defineNuxtModule<ModuleOptions>({
// Context will use in server
nuxt.options.runtimeConfig.content = {
cacheVersion: CACHE_VERSION,
cacheIntegerity,
cacheIntegrity,
...contentContext as any
}

Expand Down Expand Up @@ -454,7 +454,7 @@ interface ModulePrivateRuntimeConfig {
* This is used to invalidate cache when the format changes.
*/
cacheVersion: string;
cacheIntegerity: string;
cacheIntegrity: string;
}

declare module '@nuxt/schema' {
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/server/storage.ts
Expand Up @@ -99,7 +99,7 @@ export const getContent = async (event: CompatibilityEvent, id: string): Promise
meta,
// Add Content version to the hash, to revalidate the cache on content update
version: contentConfig.cacheVersion,
integerity: contentConfig.cacheIntegrity
integrity: contentConfig.cacheIntegrity
})
if (cached?.hash === hash) {
return cached.parsed as ParsedContent
Expand Down

0 comments on commit fd1c56d

Please sign in to comment.