Files
piston/vite.config.ts
neoapps-dev 471c249dc3 init
2026-04-10 17:03:58 +03:00

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