chore: initialize deployable website and CMS

This commit is contained in:
Codex User
2026-09-08 11:57:17 +08:00
commit 3a99ae30c5
57 changed files with 11205 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
host: '0.0.0.0',
port: 15173,
proxy: {
'/api': { target: 'http://127.0.0.1:13001', changeOrigin: true },
'/uploads': { target: 'http://127.0.0.1:13001', changeOrigin: true },
},
},
preview: {
host: '0.0.0.0',
port: 14173,
},
build: {
outDir: 'dist',
assetsDir: 'assets',
sourcemap: false,
},
})