Skip to content

Minimal reproducible repo to see ServerSide Rendering fail in NextJS deployed via SST

Notifications You must be signed in to change notification settings

benry1/nextjs-ssr-fails

Repository files navigation

This is a Next.js project bootstrapped with create-next-app. This is to be deployed to AWS via sst.

Only modifications were:

  1. Removed most of the content from Index (for simplicity)
  2. Added a Hello World getServerSideProps function

The Problem

Simplest-case Serverside Rendering does not work when deployed with SST. It will always throw a 500, and render a page that says "Internal Server Error"

To Reproduce

Notice you can run the app normally, using npx next.

Then, deploy it via SST:

npx sst deploy --stage test

You should see output like this:

✔  Deployed:
   Site
   SiteUrl: https://unique-url.cloudfront.net

Go to your unique URL and observe the error.

About

Minimal reproducible repo to see ServerSide Rendering fail in NextJS deployed via SST

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published