Spaces:
Running
Running
Download bioai-platform/frontend/next.config.js from Samad14/bio-nexus-api: direct link, hf CLI and curl.
- Browser
- Download file 519 Bytes
-
https://huggingface.co/spaces/Samad14/bio-nexus-api/resolve/main/bioai-platform/frontend/next.config.js
- Command line
-
hf download hf://spaces/Samad14/bio-nexus-api/bioai-platform/frontend/next.config.js
-
curl -L -o next.config.js https://huggingface.co/spaces/Samad14/bio-nexus-api/resolve/main/bioai-platform/frontend/next.config.js
519 Bytes
| const { withSentryConfig } = require('@sentry/nextjs'); | |
| /** @type {import('next').NextConfig} */ | |
| const nextConfig = { | |
| async rewrites() { | |
| const backendUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8000'; | |
| return [ | |
| { | |
| source: '/api/backend/:path*', | |
| destination: `${backendUrl}/:path*`, | |
| }, | |
| ]; | |
| }, | |
| }; | |
| // Force clean Vercel rebuild — reads NEXT_PUBLIC_API_URL at build time | |
| module.exports = withSentryConfig(nextConfig, { | |
| silent: true, | |
| hideSourceMaps: true, | |
| }); | |