This commit is contained in:
WUSIJIAN
2025-12-20 15:13:14 +08:00
4 changed files with 16 additions and 3 deletions

View File

@@ -2,4 +2,4 @@
ENV = 'development'
# 本地环境接口地址
VITE_API_URL = 'http://192.168.3.11:8808/'
VITE_API_URL = 'http://192.168.3.200:8808/'

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --registry=https://registry.npmmirror.com
COPY . .
EXPOSE 8888
CMD ["npm", "run", "dev"]

View File

@@ -22,7 +22,7 @@ const service: AxiosInstance = axios.create({
const newService: AxiosInstance = axios.create({
// baseURL: 'http://192.168.3.95:8000/',
// baseURL: 'http://192.168.3.49:8000/',
baseURL: 'http://192.168.3.11:8000/',
baseURL: 'http://192.168.3.200:8000/',
timeout: 50000,
headers: { 'Content-Type': 'application/json' },
paramsSerializer: {

View File

@@ -37,7 +37,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
// },
proxy: {
'/api': {
target: 'http://192.168.3.49:8808',
target: 'http://192.168.3.200:8808',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '/api'),
},