Files
ebook/nuxt.config.ts
koziavin 94d008ca7d
All checks were successful
Deploy Nuxt App / deploy (push) Successful in 1m31s
add html-validator + fix html ceo code
2025-06-20 12:21:00 +04:00

42 lines
751 B
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: "warning",
failOnError: false,
},
app: {
head: {
htmlAttrs: {
lang: "ru",
},
...head,
},
},
});