35 lines
674 B
JavaScript
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,
|
|
}
|
|
}
|
|
}
|
|
})
|