first commit
This commit is contained in:
84
nuxt.config.ts
Normal file
84
nuxt.config.ts
Normal file
@@ -0,0 +1,84 @@
|
||||
// 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); backend for login/register API
|
||||
BASE_API_URL: process.env.PUBLIC_API_BASE || process.env.PUBLIC_API_BASE,
|
||||
BASE_SITE_URL: process.env.BASE_SITE_URL,
|
||||
yourOrigin: "",
|
||||
apiBase: "",
|
||||
},
|
||||
},
|
||||
modules: [
|
||||
'@nuxt/a11y',
|
||||
'@nuxt/content',
|
||||
'@nuxt/eslint',
|
||||
'@nuxt/fonts',
|
||||
'@nuxt/hints',
|
||||
'@nuxt/icon',
|
||||
'@nuxt/image',
|
||||
'@nuxt/scripts',
|
||||
'@nuxtjs/sitemap',
|
||||
'@nuxtjs/turnstile',
|
||||
'@sidebase/nuxt-auth',
|
||||
'@pinia/nuxt'
|
||||
],
|
||||
app: {
|
||||
head: {
|
||||
title: 'Avigo Multipurpose Theme',
|
||||
meta: [
|
||||
{ charset: 'utf-8' },
|
||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' },
|
||||
],
|
||||
link: [
|
||||
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
|
||||
{ rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: 'anonymous' },
|
||||
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital@0;1&display=swap' },
|
||||
|
||||
{ rel: 'stylesheet', href: '/style.css' },
|
||||
{ rel: 'stylesheet', href: '/css/font-icons.css' },
|
||||
{ rel: 'stylesheet', href: '/css/custom.css' },
|
||||
],
|
||||
script: [
|
||||
{ src: '/js/plugins.min.js', defer: true },
|
||||
{ src: '/js/functions.bundle.js', defer: true },
|
||||
]
|
||||
}
|
||||
},
|
||||
vite: {
|
||||
build: {
|
||||
sourcemap: false,
|
||||
},
|
||||
},
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user