public/nuxt.config.ts

43 lines
859 B
TypeScript
Raw Normal View History

2022-07-21 16:50:03 -04:00
import { defineNuxtConfig } from "nuxt";
2022-07-21 22:03:35 -04:00
import svgLoader from "vite-svg-loader";
2022-07-21 16:50:03 -04:00
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
2022-07-21 22:03:35 -04:00
modules: [
"@nuxt/content",
"@nuxtjs/tailwindcss",
2022-07-22 15:32:00 -04:00
"@nuxtjs/color-mode",
2022-07-21 22:03:35 -04:00
"@nuxtjs/sitemap",
],
2022-07-21 16:50:03 -04:00
nitro: {
prerender: {
routes: ["/sitemap.xml"],
},
},
typescript: {
shim: false,
},
2022-07-21 22:03:35 -04:00
sitemap: {
hostname: process.env.BASE_URL || "https://eggworld.tk",
},
2022-07-21 16:50:03 -04:00
tailwindcss: {},
2022-07-21 22:03:35 -04:00
colorMode: {
classSuffix: "",
},
vite: {
plugins: [svgLoader()],
},
head: {
meta: [
{ name: "viewport", content: " width=device-width,initial-scale=1" },
],
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
},
2022-07-22 15:32:00 -04:00
content: {
documentDriven: false,
highlight: {
theme: "dracula",
},
},
2022-07-21 16:50:03 -04:00
});