Capital/nuxt.config.ts

50 lines
927 B
TypeScript
Raw Normal View History

2024-07-02 15:07:22 +00:00
import vuetify, { transformAssetUrls } from "vite-plugin-vuetify"
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
2024-07-02 15:07:22 +00:00
app: {
head: {
title: "Solsynth LLC",
titleTemplate: "%s | Solsynth",
link: [{ rel: "icon", type: "image/png", href: "/favicon.png" }],
},
},
2024-07-02 15:07:22 +00:00
content: {
api: {
baseURL: "/api/content",
},
highlight: {
theme: "github-dark",
},
},
2024-07-02 15:07:22 +00:00
build: {
transpile: ["vuetify"],
},
2024-07-02 15:07:22 +00:00
modules: [
"@unocss/nuxt",
"@nuxt/content",
"@nuxt/image",
(_options, nuxt) => {
nuxt.hooks.hook("vite:extendConfig", (config) => {
// @ts-expect-error
config.plugins.push(vuetify({ autoImport: true }))
})
},
//...
],
2024-07-02 15:07:22 +00:00
vite: {
vue: {
template: {
transformAssetUrls,
},
},
},
compatibilityDate: "2024-08-10",
})