mirror of
https://github.com/LCE-Hub/piston.git
synced 2026-07-15 21:32:26 +00:00
16 lines
347 B
TypeScript
16 lines
347 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
export default defineConfig({
|
|
base: './',
|
|
plugins: [react()],
|
|
server: {
|
|
proxy: {
|
|
'/github-proxy': {
|
|
target: 'https://github.com',
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/github-proxy/, ''),
|
|
},
|
|
},
|
|
},
|
|
})
|