Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: empty publicRuntimeEnvironment in docker and Kubernetes #662

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dkyeremeh
Copy link

@dkyeremeh dkyeremeh commented Dec 7, 2022

Fixes #656 #636

Issue #656 occurs because the configuration DISALLOW_ANONYMOUS_LINKS is not available to publicRuntimeConfig
when using container orchestration.

This PR allows both .env file and values from process.env to be used to configure app, making it possible to use any type of environmental variables

@dkyeremeh
Copy link
Author

Looks like #637 addresses the same issue using a different approach

@dkyeremeh
Copy link
Author

@fashberg what do you think about this approach?

Comment on lines +5 to +6
export const { DISALLOW_ANONYMOUS_LINKS } = publicRuntimeConfig;
export const { DISALLOW_REGISTRATION } = publicRuntimeConfig;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer necessary to compare the value with 'true'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not show the homepage with options if anonymous links disabled
1 participant