Spaces:
Running
Running
Download frontend/next.config.mjs from TwanAPI/UploadFile: direct link, hf CLI and curl.
- Browser
- Download file 440 Bytes
-
https://huggingface.co/spaces/TwanAPI/UploadFile/resolve/main/frontend/next.config.mjs
- Command line
-
hf download hf://spaces/TwanAPI/UploadFile/frontend/next.config.mjs
-
curl -L -o next.config.mjs https://huggingface.co/spaces/TwanAPI/UploadFile/resolve/main/frontend/next.config.mjs
440 Bytes
| /** @type {import('next').NextConfig} */ | |
| const nextConfig = { | |
| output: 'standalone', | |
| reactStrictMode: true, | |
| async rewrites() { | |
| const apiBase = process.env.BACKEND_URL || 'http://127.0.0.1:8080'; | |
| return [ | |
| { | |
| source: '/api/:path*', | |
| destination: `${apiBase}/api/:path*`, | |
| }, | |
| { | |
| source: '/health', | |
| destination: `${apiBase}/health`, | |
| }, | |
| ]; | |
| }, | |
| }; | |
| export default nextConfig; | |