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