Files
ebook/nuxt.config.ts
koziavin 1b211c3148
All checks were successful
Deploy Nuxt App / deploy (push) Successful in 4m25s
fix
2025-06-22 09:25:44 +04:00

57 lines
1.0 KiB
TypeScript

import config from './config'
import { fileURLToPath, URL } from 'node:url'
import head from './config/head'
// import sitemap from "./config/sitemap";
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2025-05-15',
devtools: { enabled: true },
devServer: {
host: 'localhost',
port: 4002,
},
nitro: {
output: {
dir: './dist',
},
},
alias: {
'@': fileURLToPath(new URL('./', import.meta.url)),
},
css: ['@/assets/css/tailwind.css'],
...config,
htmlValidator: {
usePrettier: true,
logLevel: 'error',
failOnError: false,
},
app: {
head: {
title: 'Vino Galante',
htmlAttrs: {
lang: 'ru',
},
...head,
},
},
runtimeConfig: {
smtpHost: process.env.SMTP_HOST,
smtpPort: process.env.SMTP_PORT,
smtpUser: process.env.SMTP_USER,
smtpPass: process.env.SMTP_PASS,
},
modules: [
...config.modules,
// ['nuxt-mail', ... ] // Модуль больше не нужен
],
})