Skip to content

Commit

Permalink
Merge pull request #1369 from flanksource/1367-docker-image-not-building
Browse files Browse the repository at this point in the history
Fix Docker Image Building Failing
  • Loading branch information
mainawycliffe authored Sep 7, 2023
2 parents 77bc4de + b323310 commit 55060a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,24 @@ const config = {
const LOCALHOST_ENV_URL_REWRITES = [
{
source: "/api/:path*",
destination: new URL(`/api/:path*`, backendURL).href
destination: `${backendURL}/api/:path*`
}
];

const URL_REWRITES = [
{
source: "/api/canary/:path*",
destination: new URL(`${canaryPrefix}/:path*`, backendURL).href
destination: `${backendURL}/${canaryPrefix}/:path*`
},
{
source: "/api/.ory/:path*",
destination: new URL(`/kratos/:path*`, backendURL).href
destination: `${backendURL}/kratos/:path*`
},
// All other API requests are proxied to the backend on the same path
// as the request.
{
source: "/api/:path*",
destination: new URL(`/:path*`, backendURL).href
destination: `${backendURL}/:path*`
}
];
const rewrites = ["localhost", "netlify"].includes(process.env.ENV)
Expand Down

0 comments on commit 55060a6

Please sign in to comment.