Samad14's picture
chore: force clean Vercel rebuild to pick up NEXT_PUBLIC_API_URL
19e927e
Raw History Blame Contribute Delete
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,
});