Init
This commit is contained in:
55
nuxt.config.ts
Normal file
55
nuxt.config.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: '2025-01-29',
|
||||
|
||||
devtools: { enabled: true },
|
||||
|
||||
// App configuration
|
||||
app: {
|
||||
head: {
|
||||
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=Roboto:wght@300;400;500;700&display=swap',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
// Modules
|
||||
modules: ['@nuxtjs/tailwindcss', 'shadcn-nuxt', '@nuxt/eslint'],
|
||||
|
||||
// shadcn-nuxt configuration
|
||||
shadcn: {
|
||||
prefix: '',
|
||||
componentDir: './components/ui',
|
||||
},
|
||||
|
||||
// Runtime configuration
|
||||
runtimeConfig: {
|
||||
// Server-only config
|
||||
databaseUrl: process.env.DATABASE_URL,
|
||||
redisHost: process.env.REDIS_HOST || 'localhost',
|
||||
redisPort: process.env.REDIS_PORT || '6379',
|
||||
|
||||
// Public (exposed to client)
|
||||
public: {
|
||||
appUrl: process.env.APP_URL || 'http://localhost:3000',
|
||||
},
|
||||
},
|
||||
|
||||
// TypeScript configuration
|
||||
typescript: {
|
||||
strict: true,
|
||||
typeCheck: false, // Disabled for now, will enable in later phases with vue-tsc
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user