public/nuxt.config.ts

93 lines
1.8 KiB
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",
"nuxt-full-static",
2022-07-21 22:03:35 -04:00
],
2022-07-21 16:50:03 -04:00
nitro: {
prerender: {
2022-08-10 19:50:50 -04:00
routes: ["/sitemap.xml"],
2022-07-21 16:50:03 -04:00
},
},
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" },
],
2022-08-10 16:31:25 -04:00
link: [
{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
{
rel: "stylesheet",
href: "https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css",
},
],
2022-08-12 20:47:10 -04:00
script: [
{
defer: true,
src: "/script.js",
hid: "stupidEmergencyScript",
},
],
2022-07-21 22:03:35 -04:00
},
2022-07-22 15:32:00 -04:00
content: {
documentDriven: false,
highlight: {
theme: "dracula",
2022-08-10 17:48:32 -04:00
preload: [
"python",
"ts",
"js",
"sh",
"batch",
"c",
"cpp",
"dart",
"diff",
"docker",
"git-commit",
"git-rebase",
"go",
"ini",
"java",
"json",
"jsx",
"latex",
"md",
"nginx",
"rs",
"sql",
"toml",
"tsx",
"vue-html",
"vue",
"yaml",
"xml",
],
2022-07-22 15:32:00 -04:00
},
markdown: {
2022-08-10 16:31:25 -04:00
remarkPlugins: ["remark-math"],
rehypePlugins: [["rehype-katex", { output: "html" }]],
},
},
experimental: {
reactivityTransform: true,
2022-07-22 15:32:00 -04:00
},
2022-07-21 16:50:03 -04:00
});