38 lines
1.3 KiB
TypeScript
38 lines
1.3 KiB
TypeScript
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
export default defineNuxtConfig({
|
|
compatibilityDate: '2025-01-01',
|
|
devtools: { enabled: false },
|
|
modules: ['@nuxt/eslint'],
|
|
css: ['~/assets/css/main.css'],
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
},
|
|
app: {
|
|
head: {
|
|
htmlAttrs: { lang: 'en' },
|
|
title: 'Acme — ready-to-run app',
|
|
meta: [
|
|
{ name: 'description', content: 'A production-ready Nuxt app: auth, roles, payments, admin, SEO — working on day one.' },
|
|
{ property: 'og:title', content: 'Acme — ready-to-run app' },
|
|
{ property: 'og:type', content: 'website' },
|
|
],
|
|
},
|
|
},
|
|
runtimeConfig: {
|
|
databaseUrl: process.env.DATABASE_URL || 'file:./dev.db',
|
|
stripeSecretKey: process.env.STRIPE_SECRET_KEY || '',
|
|
stripeWebhookSecret: process.env.STRIPE_WEBHOOK_SECRET || '',
|
|
resendApiKey: process.env.RESEND_API_KEY || '',
|
|
emailFrom: process.env.EMAIL_FROM || 'Acme <noreply@example.com>',
|
|
public: {
|
|
siteUrl: process.env.NUXT_PUBLIC_SITE_URL || process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3000',
|
|
},
|
|
},
|
|
nitro: {
|
|
preset: 'node-server',
|
|
// Keep Prisma as a runtime dependency of the built server (its query engine lives in node_modules).
|
|
externals: { external: ['@prisma/client'] },
|
|
},
|
|
});
|