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 7, 2024
1 parent 60f1b7b commit 05f8912
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
MONGODB_NAME: ${{ secrets.MONGODB_NAME }}
ORY_SDK_URL: ${{ secrets.ORY_SDK_URL }}
ORY_ACCESS_TOKEN: ${{ secrets.ORY_ACCESS_TOKEN }}
ORYCLOUD: true
ORYCLOUD: "enabled"
ALETHEIA_SCHEMA_ID: ${{ secrets.ALETHEIA_SCHEMA_ID }}
RECAPTCHA_SITEKEY: ${{ secrets.RECAPTCHA_SITEKEY }}
NOVU_API_KEY: ${{ secrets.NOVU_API_KEY }}
Expand Down Expand Up @@ -112,6 +112,7 @@ jobs:
ORY_ACCESS_TOKEN: ${{ secrets.ORY_ACCESS_TOKEN }}
RECAPTCHA_SITEKEY: ${{ secrets.RECAPTCHA_SITEKEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ORYCLOUD: "enabled"
TAG: ${{ github.sha}}
steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ARG NEXT_PUBLIC_UMAMI_SITE_ID
ARG NEXT_PUBLIC_RECAPTCHA_SITEKEY
ARG NEXT_PUBLIC_ENVIRONMENT
ARG NEXT_PUBLIC_ORY_SDK_URL
ARG NEXT_PUBLIC_ORYCLOUD
ARG ENVIRONMENT
ENV PARCEL_WORKERS=1
ENV NEW_RELIC_NO_CONFIG_FILE=true
Expand Down
3 changes: 1 addition & 2 deletions deployment/k8s/modules/container.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import "package://pkg.pkl-lang.org/pkl-k8s/[email protected]#/api/core/v1/PodSpec.pkl"
hidden namespace = ""
hidden imagePath = ""
hidden podPort = ""
hidden oryCloud = "true"

container: PodSpec.Container = new {
name = ""
Expand Down Expand Up @@ -50,7 +49,7 @@ container: PodSpec.Container = new {
}
new {
name = "NEXT_PUBLIC_ORYCLOUD"
value = oryCloud
value = read("env:ORYCLOUD")
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib/orysdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { edgeConfig } from "@ory/integrations/next";

let oryConfig = new Configuration(edgeConfig);

if (process.env.NEXT_PUBLIC_ORYCLOUD === "true") {
if (process.env.NEXT_PUBLIC_ORYCLOUD === "enabled") {
oryConfig = new Configuration({
basePath: process.env.NEXT_PUBLIC_ORY_SDK_URL,
baseOptions: {
Expand Down

0 comments on commit 05f8912

Please sign in to comment.