Potential issue with PUBLIC_ORG and PRIVATE_ORG logic #408
Closed
jeffabailey
started this conversation in
General
Replies: 1 comment 1 reply
-
|
I'm not 100% sure the AI explanation there about build-time substitution makes sense, based on https://nextjs.org/docs/pages/guides/environment-variables#bundling-environment-variables-for-the-browser, unless you're triggering that scenario accidentally at build-time? Dot vs bracket notation on Have you verified the environment variable is being properly passed to the container at runtime? And have you verified the Lambda artifact does not contain the substituted value from build-time but still references |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To avoid a potentially confusing PR out of the blue, I'm explaining my situation:
It appears the PRIVATE_ORG environment variable isn't read by the app.
I've spun up a deployment of the app to a lambda hosted container.
After these changes, I've successfully installed the app in a public and private org, and successfully copied a public fork to my private org.
I had to apply these patches to get it to work.
Not needed to fix the issue, but useful to see what's configured in the Lambda.
Looks like where the privateOrg data isn't picked up when PRIVATE_ORG is defined.
My AI friend explained why this change is required:
I asked it if the Lamba is the problem, and not the Private Mirror App, and it responded:
Reads line 166, which makes the PRIVATE_ORG show up as a mirroring destination:
Is there something I'm missing, or is there an issue with the private vs. public mirroring logic?
Beta Was this translation helpful? Give feedback.
All reactions