Next.js Discord

Discord Forum

Deployment issue with AWS Amplify

Unanswered
Crucian carp posted this in #help-forum
Open in Discord
Crucian carpOP
Hey wonderful people! I've recently built an app for my clients, and have run into a very strange issue. The application itself is deployed on AWS Amplify, and something weird is happening. On some devices, when I create an account (we're using firebase auth), and login, everything is fine, but when we logout, and re-try logging in, the URL changes to /dashboard, but I'm shown the landing page (/ screen). Using THAT specific account on any device leads to the same issue, whereas logging in with any other account has no issue. No matter what URL the user then goes to, it never shows a 404, even tho the 404 page is defined, but just always shows the landing page.

Trying to log in those broken accounts on localhost works no problem.

I created a prodction build locally via 'yarn build' but that was also working perfectly, which leads me to believe it's an Amplify specific issue.

Any help at all would be really appreciated!

0 Replies