DEV Community

loading...

Discussion on: Multi-env Next.js app with AWS Amplify & Serverless

Collapse
jonathangiardino profile image
jonathangiardino

Great article Aaron!

I am actually looking into this exact stack and setup to build a Shopify app.

How would you integrate DynamoDB and the GraphQL API into this setup (using the Serverless NextJS component from Serverless Framework and Amplify)?

Collapse
aarongarvey profile image
Aaron Garvey Author

Thanks Jonathan!

So for adding graphql and db resources like AppSync and DyanmoDB, you'd use the AWS Amplify CLI tools to provision these resources. I'd suggest taking a look at docs.amplify.aws/lib/graphqlapi/ge...] as a starting point.

Once you have your AWS Amplify resources all setup from the CLI, then deploying the application as described above will automatically build any changes for your backend resources every time you push a commit to one of your targeted branches using AWS Amplifies CI/CD pipeline.

Forem Open with the Forem app