Fix Turnstile unable to read the siteKey (#1728)
It seems that Nuxt Turnstile's way of setting the key in `runtimeConfig` is broken and doesn't work properly, resulting in an error in runtime, because it has to be set. This commit sets the key in `runtimeConfig` manually instead, which seems to fix the issue.
This commit is contained in:
parent
05d45d9aab
commit
61fd6f1741
@ -305,6 +305,8 @@ export default defineNuxtConfig({
|
||||
// @ts-ignore
|
||||
globalThis.CF_PAGES_COMMIT_SHA ||
|
||||
'unknown',
|
||||
|
||||
turnstile: { siteKey: '0x4AAAAAAAW3guHM6Eunbgwu' },
|
||||
},
|
||||
},
|
||||
typescript: {
|
||||
@ -362,9 +364,6 @@ export default defineNuxtConfig({
|
||||
}
|
||||
},
|
||||
},
|
||||
turnstile: {
|
||||
siteKey: '0x4AAAAAAAW3guHM6Eunbgwu',
|
||||
},
|
||||
nitro: {
|
||||
moduleSideEffects: ['@vintl/compact-number/locale-data'],
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user