DEV Community


Discussion on: A crash course on serverless-side rendering with React.js, Next.js and AWS Lambda

adnanrahic profile image
Adnan Rahić Author

Can you try cloning the repo and deploying it? If that works, there has to be a strange issue somewhere in your code. Compare your project to the cloned repo. Hopefully, that'll help you out. :)

hzburki profile image
Haseeb Burki

It doesn't work when I clone it from the repo either. The only thing I've changed were the values in secret.json

On local routes work fine, except for the dynamic "_breed" route. It results in 404 Not Found.

On deploying to AWS all routes result in message: "Internal server error" ... you can check it out at

billypurvis profile image
Billy Purvis

Hi - this doesn't work.

The only route that does work (without defining a specific route definition in server.js) is index.js.

Any other pages under /pages fails to render with a 404, although, they do work fine in local environment.

Perhaps there's some other settings that aren't listed in this article?

drumline18 profile image

That does not work. It gives and internal server error as soon as you try using app.render.