DEV Community

Discussion on: Server-Side Rendered Real-time Web App with Next.js, AWS Amplify & GraphQL

rakannimer profile image
Rakan Nimer Author

No, unfortunately you can't deploy the API directory like this, this is only for your static assets and for the api calls you will need a node server. You can use zeit's now to easily deploy the API, alternatively you can use any provider that supports node apps deployment and then running npm run build && npm run start.

Thread Thread
devth profile image
Trevor Hartman

Why is the title of this article "Server-Side Rendered Real-time Web App with Next.js, AWS Amplify" if Amplify doesn't support SSR? 🤔

Thread Thread
rakannimer profile image
Rakan Nimer Author • Edited

Amplify Console doesn't support SSR but you can use the Amplify API to populate the data for your page on the server side