Files
nanocode/personal-blog/frontend/vite.config.js
T
2026-07-19 16:00:01 +08:00

35 lines
674 B
JavaScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
host: '0.0.0.0',
port: 8888,
fs: {
strict: false,
allow: [
'/home/ubuntu/nanocode/personal-blog',
],
},
hmr: {
overlay: false,
},
proxy: {
'/api': {
target: 'http://localhost:8889',
changeOrigin: true,
},
'/uploads': {
target: 'http://localhost:8889',
changeOrigin: true,
},
'/settings': {
target: 'http://localhost:8889',
changeOrigin: true,
}
}
}
})