20 lines
467 B
JavaScript
20 lines
467 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 10000,
|
|
host: true,
|
|
allowedHosts: true,
|
|
proxy: {
|
|
'/challenges': 'http://127.0.0.1:8000',
|
|
'/run': 'http://127.0.0.1:8000',
|
|
'/lint': 'http://127.0.0.1:8000',
|
|
'/guide': 'http://127.0.0.1:8000',
|
|
'/handbook': 'http://127.0.0.1:8000',
|
|
},
|
|
},
|
|
})
|