Skip to content

Commit

Permalink
Rewrite uploads for static hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
ky28059 committed Aug 29, 2024
1 parent fb76b20 commit 025d7ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
const RCTF_BASE = 'http://ctf.b01lers.com:9001';

/** @type {import('next').NextConfig} */
const nextConfig = {
env: {
API_BASE: 'http://ctf.b01lers.com:9001/api/v1',
API_BASE: `${RCTF_BASE}/api/v1`,
KLODD_URL: 'https://instancer.b01lersc.tf'
},
logging: {
Expand All @@ -15,6 +17,10 @@ const nextConfig = {
{
source: '/api/v1/:path*',
destination: `${this.env.API_BASE}/:path*`
},
{
source: '/uploads',
destination: `${RCTF_BASE}/uploads`,
}
]
}
Expand Down

0 comments on commit 025d7ab

Please sign in to comment.