Skip to content

Commit

Permalink
feat: notifications feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ruilopesm committed Feb 26, 2024
1 parent a063a2f commit a715083
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .env.local.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
NEXT_PUBLIC_API_URL=http://locahost:4000
NEXT_PUBLIC_WS_URL=ws://localhost:4000/socket
NEXT_PUBLIC_QRCODE_HOST=seium.org
NEXT_PUBLIC_BACKOFFICE_FEATURE_FLAG=true
NEXT_PUBLIC_BACKOFFICE_FEATURE_FLAG=true
NEXT_PUBLIC_NOTIFICATIONS_FEATURE_FLAG=false
9 changes: 9 additions & 0 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ import "../styles/globals.css";
import { NotifyProvider } from "@context/Notification";

function App({ Component, pageProps }) {
if (process.env.NEXT_PUBLIC_NOTIFICATIONS_FEATURE_FLAG === "false") {
return (
<AuthProvider>
<Header />
<Component {...pageProps} />
</AuthProvider>
);
}

return (
<AuthProvider>
<NotifyProvider>
Expand Down

0 comments on commit a715083

Please sign in to comment.