Skip to content

Commit

Permalink
Add environment variable for displaying self sign-up (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffersonBledsoe authored Apr 17, 2023
1 parent 3673405 commit 64308d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/config/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ export const updateSettingsConfig = (config) => {
...(config.settings.fullWidthBlockTypes || []),
];

config.settings.showTags = false
config.settings.showTags = false;
config.settings.showSelfRegistration =
process?.env?.['RAZZLE_ENABLE_SELF_REGISTRATION'] === 'true' ||
(typeof window !== 'undefined' &&
window.env['RAZZLE_ENABLE_SELF_REGISTRATION'] === 'true');
};

export default updateSettingsConfig;

0 comments on commit 64308d2

Please sign in to comment.