first commit
This commit is contained in:
64
nuxt.config.ts
Normal file
64
nuxt.config.ts
Normal file
@@ -0,0 +1,64 @@
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: '2025-07-15',
|
||||
devtools: {enabled: true},
|
||||
auth: {
|
||||
// Full auth endpoint URL (origin + /api/auth). This prevents /session recursion.
|
||||
// Prefer setting AUTH_ORIGIN in your environment (e.g. https://example.com)
|
||||
baseURL: `${(
|
||||
process.env.AUTH_ORIGIN ||
|
||||
process.env.BASE_SITE_URL ||
|
||||
`http://localhost:${process.env.PORT || 3000}`
|
||||
).replace(/\/$/, '')}/api/auth`,
|
||||
},
|
||||
turnstile: {
|
||||
siteKey: process.env.CLOUD_FLARE_SITE_KEY,
|
||||
},
|
||||
runtimeConfig: {
|
||||
//private (server-side only - güvenli)
|
||||
turnstile: {
|
||||
// This can be overridden at runtime via the NUXT_TURNSTILE_SECRET_KEY
|
||||
// environment variable.
|
||||
secretKey: process.env.CLOUD_FLARE_SECRET,
|
||||
},
|
||||
yourOrigin: "",
|
||||
apiSecret: "",
|
||||
authOrigin: process.env.AUTH_ORIGIN,
|
||||
jwtSecret: process.env.JWT_SECRET,
|
||||
googleToken: process.env.NUXT_GOOGLE_TOKEN,
|
||||
authSecret: process.env.NUXT_AUTH_SECRET,
|
||||
githubClientId: process.env.GITHUB_CLIENT_ID,
|
||||
githubClientSecret: process.env.GITHUB_CLIENT_SECRET,
|
||||
googleClientId: process.env.GOOGLE_CLIENT_ID,
|
||||
googleClientSecret: process.env.GOOGLE_CLIENT_SECRET,
|
||||
public: {
|
||||
//public (client-side accessible)
|
||||
BASE_API_URL: process.env.BASE_API_URL,
|
||||
BASE_SITE_URL: process.env.BASE_SITE_URL,
|
||||
yourOrigin: "",
|
||||
apiBase: "",
|
||||
},
|
||||
},
|
||||
|
||||
modules: [
|
||||
'@nuxt/content',
|
||||
//'@nuxt/a11y',
|
||||
'@nuxt/eslint',
|
||||
'@nuxt/fonts',
|
||||
'@nuxt/hints',
|
||||
'@nuxt/icon',
|
||||
'@nuxt/image',
|
||||
'@nuxt/scripts',
|
||||
"@sidebase/nuxt-auth",
|
||||
"@pinia/nuxt",
|
||||
'@nuxtjs/turnstile',
|
||||
],
|
||||
app: {
|
||||
// head configuration moved to layouts/default.vue
|
||||
},
|
||||
vite: {
|
||||
build: {
|
||||
sourcemap: false,
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user