feat: add Docker deployment and Microsoft OAuth support

This commit is contained in:
2026-04-18 14:02:24 +08:00
parent 6704cfb418
commit e69c0dd226
53 changed files with 5139 additions and 4029 deletions

View File

@@ -1,18 +1,20 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
'/api': 'http://127.0.0.1:8787',
},
},
preview: {
port: 5173,
proxy: {
'/api': 'http://127.0.0.1:8787',
},
},
})
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// 生产:`.env.production` 中 VITE_API_URL=https://post.api.smyhub.com
// 开发:未设置时走相对路径 + server.proxy
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
'/api': 'http://127.0.0.1:8787',
},
},
preview: {
port: 5173,
proxy: {
'/api': 'http://127.0.0.1:8787',
},
},
})