Skip to content

Commit

Permalink
Add new modules: scripts and turnstile
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger committed Dec 18, 2024
1 parent 81ced8c commit c075a0b
Show file tree
Hide file tree
Showing 3 changed files with 1,772 additions and 10 deletions.
15 changes: 15 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export default defineNuxtConfig({
"nuxt-security",
"@nuxt/devtools",
"@nuxtjs/seo",
"@nuxt/scripts",
"@nuxtjs/turnstile",
(_options, nuxt) => {
nuxt.hooks.hook("vite:extendConfig", (config) => {
config.plugins.push(vuetify({ autoImport: true }));
Expand Down Expand Up @@ -83,6 +85,19 @@ export default defineNuxtConfig({
hidePoweredBy: true,
},

turnstile: {
siteKey: '0x4AAAAAAA3DX-6IdxB60rNn',
},

runtimeConfig: {
turnstile: {
// This can be overridden at runtime via the NUXT_TURNSTILE_SECRET_KEY
// environment variable.
//secretKey: '',
secretKeyPath: 'turnstile.secretKey',
},
},

vite: {
vue: {
template: {
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
},
"dependencies": {
"@mdi/font": "^7.4.47",
"@nuxt/scripts": "0.9.5",
"@nuxtjs/seo": "^2.0.2",
"@nuxtjs/turnstile": "0.9.11",
"@vueuse/core": "^11.3.0",
"nuxt": "^3.14.1592",
"nuxt-security": "^2.1.4",
Expand Down
Loading

0 comments on commit c075a0b

Please sign in to comment.