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:26:58 +00:00
|
|
|
|
2024-08-10 13:16:36 +00:00
|
|
|
site: {
|
|
|
|
url: "https://solsynth.dev",
|
|
|
|
name: "Solsynth LLC",
|
|
|
|
},
|
|
|
|
sitemap: {
|
|
|
|
sources: [
|
|
|
|
"/api/sitemap/posts",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
2024-08-10 05:47:34 +00:00
|
|
|
css: ["@/assets/index.css"],
|
|
|
|
|
2024-08-10 07:00:17 +00:00
|
|
|
runtimeConfig: {
|
|
|
|
public: {
|
2024-08-10 13:16:36 +00:00
|
|
|
siteUrl: "https://solsynth.dev",
|
2024-08-10 09:42:49 +00:00
|
|
|
solarRealmId: 2,
|
2024-08-10 07:00:17 +00:00
|
|
|
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",
|
2024-08-10 07:00:17 +00:00
|
|
|
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-08-10 07:00:17 +00:00
|
|
|
],
|
2024-07-02 15:07:22 +00:00
|
|
|
},
|
|
|
|
},
|
2024-08-10 05:26:58 +00:00
|
|
|
|
2024-07-02 15:07:22 +00:00
|
|
|
content: {
|
|
|
|
api: {
|
|
|
|
baseURL: "/api/content",
|
|
|
|
},
|
|
|
|
highlight: {
|
|
|
|
theme: "github-dark",
|
|
|
|
},
|
|
|
|
},
|
2024-08-10 05:26:58 +00:00
|
|
|
|
2024-07-02 15:07:22 +00:00
|
|
|
build: {
|
|
|
|
transpile: ["vuetify"],
|
|
|
|
},
|
2024-08-10 05:26:58 +00:00
|
|
|
|
2024-07-02 15:07:22 +00:00
|
|
|
modules: [
|
|
|
|
"@unocss/nuxt",
|
|
|
|
"@nuxt/content",
|
|
|
|
"@nuxt/image",
|
2024-08-10 13:16:36 +00:00
|
|
|
"@nuxtjs/sitemap",
|
2024-07-02 15:07:22 +00:00
|
|
|
(_options, nuxt) => {
|
|
|
|
nuxt.hooks.hook("vite:extendConfig", (config) => {
|
|
|
|
// @ts-expect-error
|
|
|
|
config.plugins.push(vuetify({ autoImport: true }))
|
|
|
|
})
|
|
|
|
},
|
|
|
|
//...
|
|
|
|
],
|
2024-08-10 05:26:58 +00:00
|
|
|
|
2024-07-02 15:07:22 +00:00
|
|
|
vite: {
|
|
|
|
vue: {
|
|
|
|
template: {
|
|
|
|
transformAssetUrls,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-08-10 05:26:58 +00:00
|
|
|
|
|
|
|
compatibilityDate: "2024-08-10",
|
2024-08-10 05:47:34 +00:00
|
|
|
})
|