diff --git a/next.config.js b/next.config.js index 491e16c..be09a08 100644 --- a/next.config.js +++ b/next.config.js @@ -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: { @@ -15,6 +17,10 @@ const nextConfig = { { source: '/api/v1/:path*', destination: `${this.env.API_BASE}/:path*` + }, + { + source: '/uploads', + destination: `${RCTF_BASE}/uploads`, } ] }