32 lines
1.2 KiB
TypeScript
32 lines
1.2 KiB
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
compatibilityDate: '2025-07-15',
|
|
devtools: { enabled: true },
|
|
modules: [
|
|
'@nuxtjs/tailwindcss',
|
|
'@pinia/nuxt',
|
|
'@vee-validate/nuxt',
|
|
'vue-sonner/nuxt',
|
|
'@nuxt/icon'
|
|
],
|
|
runtimeConfig: {
|
|
databaseUrl: process.env.DATABASE_URL,
|
|
jwtIssuer: process.env.JWT_ISSUER ?? 'https://auth.local',
|
|
jwtAudience: process.env.JWT_AUDIENCE ?? 'internal-apis',
|
|
jwtAccessTtlSec: process.env.JWT_ACCESS_TTL_SEC ?? '900',
|
|
jwtRefreshTtlSec: process.env.JWT_REFRESH_TTL_SEC ?? '604800',
|
|
jwtPrivateKeyPem: process.env.JWT_PRIVATE_KEY_PEM ?? '',
|
|
jwtPublicKeyPem: process.env.JWT_PUBLIC_KEY_PEM ?? '',
|
|
jwtKid: process.env.JWT_KID ?? 'auth-key-1',
|
|
refreshTokenPepper: process.env.REFRESH_TOKEN_PEPPER ?? '',
|
|
passwordResetTtlSec: process.env.PASSWORD_RESET_TTL_SEC ?? '900',
|
|
passwordResetTokenPepper: process.env.PASSWORD_RESET_TOKEN_PEPPER ?? '',
|
|
passwordResetBaseUrl: process.env.PASSWORD_RESET_BASE_URL ?? ''
|
|
},
|
|
vite: {
|
|
optimizeDeps: {
|
|
include: ['@vue/devtools-core', '@vue/devtools-kit', 'zod', '@vee-validate/zod', 'vue-sonner']
|
|
}
|
|
}
|
|
})
|