Skip to content

phstc/cognito-amplify-cdk-10290

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Sample repo for troubleshooting Next.js and AWS Amplify "No current user" at getServerSideProps - REST, not GraphQ

Set up

cd backend
npm install
  • Make sure you have a valid GITHUB_TOKEN secret.
  • Set a unique domain for your Cognito user pool here.
  • Update the frontend Amplify configuration here to use the same unique domain
npm run deploy

Once the deployment is completed, get the output from the deployment (or check them on the Amplify deployed app/Environment variables) and configure env.local.sample with the deploy output values then rename the file to env.local.

mv frontend/env.local.sample frontend/env.local

Install frontend dependencies:

cd frontend
npm install

Running

cd frontend
npm run dev

Open http://localhost:3000 there will be two links:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published