You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OneAuth/oaweb/nuxt.config.ts

62 lines
1.2 KiB
TypeScript

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
css: [
'~/assets/css/app.scss',
'~/assets/css/tailwind.css',
],
plugins: [
'~/plugins/third'
],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
ssr: false,
nitro: {
devProxy: {
"/api": {
target: "http://localhost:4000/api",
changeOrigin: true,
ws: true,
},
'/fs': {
target: 'http://localhost:4000/fs',
changeOrigin: true,
ws: true,
},
'/media': {
target: 'http://localhost:4000/media',
changeOrigin: true,
ws: true,
},
},
},
app: {
head: {
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'keywords', content: 'veypi, oneauth' }
],
title: 'OneAuth',
noscript: [
{ children: 'JavaScript is required' }
],
link: [
{ rel: 'icon', type: 'image/ico', href: 'favicon.ico' }
],
script: [
{ src: '/icon.js' },
]
},
},
modules: ["@pinia/nuxt"],
compatibilityDate: '2024-10-16'
})