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