docs
docs copied to clipboard
NextJS Getting Started guide: **Error: No current user**
Describe the bug I'm trying to follow the NextJS Getting Started Guide. However, I'm now stuck at this section, with Error: No current user :
Someone else has reproduced the bug in StackOverflow.
To Reproduce Steps to reproduce the behavior:
- Follow the NextJS Getting Started Guide.
- Error should be reproduced in Connect API and database to the app.
Expected behavior Tutorial can go smoothly until deploy and host app.
Screenshots
Desktop (please complete the following information):
- OS: Linux
- Browser: chrome
Hi @artidata , thanks for raising. I have a repo using the new Authenticator UI + Next SSR + getServerSideProps
(https://github.com/siegerts/next-amplified/blob/amplify-ui/pages/index.js) that may help to get you unblocked. The linked StackOverflow question is using getStaticPaths
and getStaticProps
which are invoked during build time so the user
will likely not be present since the user is not "logged in" when you run your build process.
Between updating this tutorial and @artidata's thumbs up, I am considering this issue closed!