Files
ebook/nuxt.config.ts
koziavin 925b6197f2
All checks were successful
Deploy Nuxt App / deploy (push) Successful in 3m59s
add. Closes #8
2025-06-22 08:53:02 +04:00

66 lines
1.2 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,
},
},
modules: [
...config.modules,
[
'nuxt-mail',
{
smtp: {
host: 'smtp.yandex.ru',
port: 465,
secure: true,
auth: {
user: process.env.SMTP_USER || 'levishub@yandex.com',
pass: process.env.SMTP_PASS || 'avhpihoudpyvibtx',
},
},
message: {
to: process.env.DEFAULT_TO_EMAIL || 'default@example.com',
},
},
],
],
})