refactor: restructure project to classic MVC pattern

This commit is contained in:
2025-09-09 19:57:43 +02:00
parent a28728af2a
commit 2a8d5d093c
58 changed files with 1601 additions and 1991 deletions

View File

@@ -1,10 +1,10 @@
import { defineConfig } from "vite"
import {defineConfig} from "vite"
import vue from "@vitejs/plugin-vue"
import { resolve } from "path"
import {resolve} from "path"
export default defineConfig({
plugins: [vue()],
base: process.env.NODE_ENV === "production" ? "/ai-portfolio-chat/" : "/",
base: process.env.NODE_ENV === "production" ? "/" : "/",
resolve: {
alias: {
"@": resolve(__dirname, "src"),
@@ -26,5 +26,13 @@ export default defineConfig({
server: {
port: 3000,
open: true,
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
secure: false,
//rewrite: path => path.replace(/^\/api/, '')
}
}
},
})