Skip to content

Commit

Permalink
proxy cdn and db-server
Browse files Browse the repository at this point in the history
  • Loading branch information
e9x committed Jun 12, 2023
1 parent aff14ab commit 5e47ea6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ VITE_HU_DISCORD_URL=https://discord.gg/
VITE_BARE_APIS=%{location.protocol}//%{location.host}/bare/

VITE_RH_API=%{location.protocol}//localhost:8002/
VITE_DB_API=%{location.protocol}//localhost:3001/
VITE_THEATRE_CDN=%{location.protocol}//localhost:3002/
VITE_DB_API=%{location.protocol}//%{location.host}/db/
VITE_THEATRE_CDN=%{location.protocol}//%{location.host}/cdn/
6 changes: 6 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ export default function viteConfig({ mode }: ConfigEnv) {
);

return defineConfig({
server: {
proxy: {
'/cdn/': 'https://holyubofficial.net/',
'/db/': 'https://holyubofficial.net/',
},
},
build: {
sourcemap: true,
rollupOptions: {
Expand Down

0 comments on commit 5e47ea6

Please sign in to comment.