server/packages/frontend/nuxt.config.ts

62 lines
1.3 KiB
TypeScript
Raw Normal View History

2024-04-09 13:14:53 +02:00
// import { loadConfig } from "c12";
import pkg from "../../package.json";
// import { defaultConfig } from "config-manager/config.type";
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: ["@nuxtjs/seo", "@nuxtjs/tailwindcss", "@vueuse/nuxt"],
app: {
head: {
link: [
{
rel: "icon",
href: "/favicon.png",
type: "image/png",
},
],
htmlAttrs: { lang: "en-us" },
},
},
nitro: {
compressPublicAssets: {
gzip: false,
brotli: false,
},
preset: "bun",
minify: true,
prerender: {
failOnError: true,
},
},
devServer: {
port: 5173,
},
schemaOrg: {
enabled: false,
},
2024-04-11 05:05:05 +02:00
ogImage: {
enabled: false,
},
2024-04-09 13:14:53 +02:00
vite: {
define: {
__VERSION__: JSON.stringify(pkg.version),
},
server: {
hmr: {
clientPort: 5173,
},
},
},
runtimeConfig: {
public: {
language: "en-US",
titleSeparator: "·",
siteName: "Lysand",
trailingSlash: true,
},
},
site: {
url: "https://social.lysand.org",
},
});