added vue component

This commit is contained in:
mathias committed 2023-09-15 19:58:59 +02:00
1 parent b3061ad79a
commit 018bbf3918
34 files changed
+4134 -458

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
proxy: {
'/login': {
target: 'http://localhost:8001/api/v1/auth',
changeOrigin: true,
secure: false,
// rewrite: (path) => path.replace(/^\/api/, ''),
},
'/feeds': {
target: 'http://localhost:8001/api/v1/article/get',
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/feeds/, ''),
},
},
cors: false
},
})