Files
piston/vite.config.ts
/home/neo 2d086b571c ci
2026-04-11 18:18:29 +03:00

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/, ''),
},
},
},
})