Skip to content

Commit

Permalink
Debug: force the ory config for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
thesocialdev committed Nov 6, 2024
1 parent 60f1b7b commit a7e9a09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/orysdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { edgeConfig } from "@ory/integrations/next";

let oryConfig = new Configuration(edgeConfig);

if (process.env.NEXT_PUBLIC_ORYCLOUD === "true") {
// Using == because === is too strict
if (process.env.NEXT_PUBLIC_ORYCLOUD == "true") {
oryConfig = new Configuration({
basePath: process.env.NEXT_PUBLIC_ORY_SDK_URL,
baseOptions: {
Expand Down

0 comments on commit a7e9a09

Please sign in to comment.