Capital/nuxt.config.ts

70 lines
1.5 KiB
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-08-10 05:47:34 +00:00
css: ["@/assets/index.css"],
runtimeConfig: {
public: {
baseUrl: "https://solsynth.dev",
2024-08-10 09:42:49 +00:00
solarRealmId: 2,
solarNetworkApi: "https://api.sn.solsynth.dev",
solianUrl: "https://sn.solsynth.dev",
},
},
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" },
{ rel: "preconnect", href: "https://fonts.googleapis.com" },
{ rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin: "" },
2024-08-10 09:42:49 +00:00
{
rel: "stylesheet",
href: "https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&family=Noto+Sans+JP:wght@100..900&family=Noto+Sans+SC:wght@100..900&family=Noto+Sans+TC:wght@100..900&display=swap",
},
],
2024-07-02 15:07:22 +00:00
},
},
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",
2024-08-10 05:47:34 +00:00
})