17 lines
356 B
TypeScript
17 lines
356 B
TypeScript
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'https://rle.wiki',
|
|
// uncomment the following line to use local server
|
|
// target: 'http://localhost:8787',
|
|
changeOrigin: true,
|
|
autoRewrite: true,
|
|
},
|
|
},
|
|
},
|
|
ssr: { noExternal: true },
|
|
})
|