8c3b5a314f
Set default values for Auth0 domain and clientId in nuxt.config.ts to ensure the application works with predefined settings when environment variables are not provided.
73 lines
1.6 KiB
TypeScript
73 lines
1.6 KiB
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
compatibilityDate: '2024-11-21',
|
|
|
|
devtools: { enabled: true },
|
|
|
|
ssr: false,
|
|
|
|
devServer: {
|
|
port: 3500,
|
|
},
|
|
|
|
modules: [
|
|
'vuetify-nuxt-module',
|
|
'@nuxt/eslint',
|
|
'@nuxtjs/stylelint-module',
|
|
],
|
|
|
|
eslint: {
|
|
checker: true,
|
|
},
|
|
|
|
stylelint: {
|
|
lintOnStart: false,
|
|
},
|
|
|
|
vuetify: {
|
|
moduleOptions: {
|
|
/* module specific options */
|
|
},
|
|
vuetifyOptions: {
|
|
theme: {
|
|
defaultTheme: 'light',
|
|
themes: {
|
|
light: {
|
|
colors: {
|
|
primary: '#1976D2',
|
|
secondary: '#424242',
|
|
accent: '#82B1FF',
|
|
error: '#FF5252',
|
|
info: '#2196F3',
|
|
success: '#4CAF50',
|
|
warning: '#FB8C00',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
app: {
|
|
head: {
|
|
title: 'Unbound Schemas',
|
|
meta: [
|
|
{ charset: 'utf-8' },
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
{ name: 'description', content: 'View and manage your federated GraphQL schemas' },
|
|
],
|
|
},
|
|
},
|
|
|
|
runtimeConfig: {
|
|
public: {
|
|
apiBase: process.env.NUXT_PUBLIC_API_BASE || 'http://localhost:8080',
|
|
auth0: {
|
|
domain: process.env.NUXT_PUBLIC_AUTH0_DOMAIN || 'unbound.eu.auth0.com',
|
|
clientId: process.env.NUXT_PUBLIC_AUTH0_CLIENT_ID || '7k3rZ4HRxRTkTCI3ytpF8ji0o531Zq3M',
|
|
audience: process.env.NUXT_PUBLIC_AUTH0_AUDIENCE || 'https://schemas.unbound.se',
|
|
},
|
|
},
|
|
},
|
|
})
|