Files
teletypegames/apps/frontend/vite.config.ts
T
2026-05-05 22:36:45 +02:00

32 lines
807 B
TypeScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
envPrefix: ['VITE_', 'WEBAPP_', 'YOUTUBE_', 'DISCORD_'],
server: {
host: true,
allowedHosts: ['teletypegames.org'],
proxy: {
'/proxy/wiki': {
target: 'https://wiki.teletype.hu',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/proxy\/wiki/, '')
},
'/_assets': {
target: 'https://wiki.teletype.hu',
changeOrigin: true,
},
'/_error': {
target: 'https://wiki.teletype.hu',
changeOrigin: true,
},
'/proxy/git': {
target: 'https://git.teletype.hu',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/proxy\/git/, '')
}
}
}
})