Skip to content

Commit

Permalink
Update next.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AlfieJones committed Mar 2, 2024
1 parent 378482b commit c42837f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const nextConfig = {
output: process.env.DOCKER_BUILD === "true" ? "standalone" : undefined,
async rewrites() {
return [
...(process.env.BACKEND_URL ? [{
...(process.env.NEXT_PUBLIC_BACKEND_URL ? [{
source: "/api/:path*",
destination: process.env.BACKEND_URL + "/:path*",
destination: process.env.NEXT_PUBLIC_BACKEND_URL + "/:path*",
}] : []),
];
}
Expand Down

0 comments on commit c42837f

Please sign in to comment.