Keep /privacy off unless the runtime flag is on, and show that link in the footer story.
A build-time public env value was enough to publish the page, and the footer interaction story still looked for a link the component hides by default.
This commit is contained in:
1 parent
072e5362f5
commit
81ad287c24
5 files changed
+15
-10
No files matched your search
@@ -35,6 +35,10 @@ describe("isPrivacyPolicyEnabled", () => {
|
||||
|
||||
delete process.env.ENABLE_PRIVACY_POLICY;
|
||||
process.env.NEXT_PUBLIC_ENABLE_PRIVACY_POLICY = "true";
|
||||
expect(isPrivacyPolicyEnabled()).toBe(false);
|
||||
expect(privacyPolicyUrl("https://communityrule.info")).toBeNull();
|
||||
|
||||
process.env.ENABLE_PRIVACY_POLICY = "true";
|
||||
expect(isPrivacyPolicyEnabled()).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user