frontend/nuxt.config.ts

71 lines
1.5 KiB
TypeScript
Raw Normal View History

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
"@nuxtjs/seo",
"@nuxtjs/tailwindcss",
"@vueuse/nuxt",
"nuxt-headlessui",
"@nuxt/fonts",
"nuxt-icon",
"@vee-validate/nuxt",
],
app: {
head: {
link: [
{
rel: "icon",
href: "/favicon.png",
type: "image/png",
},
],
htmlAttrs: { lang: "en-us" },
},
},
nitro: {
preset: "static",
minify: true,
prerender: {
failOnError: true,
},
},
schemaOrg: {
enabled: false,
},
ogImage: {
enabled: false,
},
vite: {
define: {
__VERSION__: JSON.stringify("0.4"),
},
server: {
hmr: {
clientPort: 3000,
host: "localhost",
protocol: "ws",
},
},
},
veeValidate: {
autoImports: true,
componentNames: {
Form: "VeeForm",
Field: "VeeField",
FieldArray: "VeeFieldArray",
ErrorMessage: "VeeErrorMessage",
},
},
runtimeConfig: {
public: {
language: "en-US",
titleSeparator: "·",
siteName: "Lysand",
trailingSlash: true,
apiHost: "https://social.lysand.org",
},
},
site: {
url: "https://social.lysand.org",
},
});