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

58 lines
1.1 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',
],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
ssr: false,
nitro: {
devProxy: {
"/api": {
target: "http://127.0.0.1:4000/api",
changeOrigin: true,
ws: true,
},
'/fs': {
target: 'http://127.0.0.1:4000/fs',
changeOrigin: true,
ws: true,
},
'/media': {
target: 'http://127.0.0.1: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"]
})