-
Looking for a little guidance on this as I'm unable to figure out why the code below does not work. I'm ultimately trying to redirect to a new page if a firebase document already exists via getServerSideProps. If I move the return/redirect outside of the of the docRef.get() then it redirects no problem. In the IF conditional though it will not redirect and I know for a fact that the doc.exists is returning true.
|
Beta Was this translation helpful? Give feedback.
Answered by
miikee-us
Jun 3, 2022
Replies: 1 comment
-
This has been resolved via different discussion: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
miikee-us
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This has been resolved via different discussion:
vercel/next.js#37429