Skip to content

Commit 025d7ab

Browse files
committed
Rewrite uploads for static hosting
1 parent fb76b20 commit 025d7ab

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

next.config.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
const RCTF_BASE = 'http://ctf.b01lers.com:9001';
2+
13
/** @type {import('next').NextConfig} */
24
const nextConfig = {
35
env: {
4-
API_BASE: 'http://ctf.b01lers.com:9001/api/v1',
6+
API_BASE: `${RCTF_BASE}/api/v1`,
57
KLODD_URL: 'https://instancer.b01lersc.tf'
68
},
79
logging: {
@@ -15,6 +17,10 @@ const nextConfig = {
1517
{
1618
source: '/api/v1/:path*',
1719
destination: `${this.env.API_BASE}/:path*`
20+
},
21+
{
22+
source: '/uploads',
23+
destination: `${RCTF_BASE}/uploads`,
1824
}
1925
]
2026
}

0 commit comments

Comments
 (0)