vue3 version of frontend
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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/, '')
|
||||
},
|
||||
'/proxy/git': {
|
||||
target: 'https://git.teletype.hu',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/proxy\/git/, '')
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user