mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-06-25 17:53:52 +08:00
Merge pull request #87 from JefferyHcool/feature/kuaishou
refactor(.gitignore and vite.config): 更新忽略文件配置和前端端口设置
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -319,4 +319,5 @@ cython_debug/
|
||||
/backend/bili_note.db
|
||||
/backend/uploads/*
|
||||
/backend/.idea/*
|
||||
/backend/config/*
|
||||
/BiliNote_frontend/.idea/*
|
||||
@@ -8,6 +8,7 @@ export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, process.cwd() + '/../')
|
||||
|
||||
const apiBaseUrl = env.VITE_API_BASE_URL
|
||||
const port = env.FRONTEND_PORT || 3015
|
||||
|
||||
return {
|
||||
plugins: [react(), tailwindcss()],
|
||||
@@ -18,7 +19,7 @@ export default defineConfig(({ mode }) => {
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 5173,
|
||||
port: port,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: apiBaseUrl,
|
||||
|
||||
Reference in New Issue
Block a user