Skip to content

Commit

Permalink
refactor: adding env to redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
jonataspinto committed Mar 4, 2022
1 parent e5c14dc commit 4949d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { NotificationProvider } from "./contexts";

export default function App() {
useLayoutEffect(() => {
if (process.env.REACT_APP_STAGE === "prod") {
if (process.env.REACT_APP_SUBSCRIPTIONS_STATUS === "closed") {
window.location.replace("https://estartandodevs.com.br");
}
}, []);
Expand Down

0 comments on commit 4949d22

Please sign in to comment.