loading...

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

TOP OF THREAD FULL DISCUSSION
re: Hi, Once I deploy this, I'm able to load the front page, but all the next resources (*.js) come back as 403, any idea why? Thanks for your help,
 

FWIW, you're probably seeing issue from not deploying with custom domain and needing to have the stage in the path to access the resource, e.g.
https://XXXXX.execute-api.us-east-1.amazonaws.com/production/_next/static/YYYYY/pages/index.js is needed but https://XXXXX.execute-api.us-east-1.amazonaws.com/_next/static/YYYYY/pages/index.js is what the express response actually renders.

This explains some of issue and attempts to make it work github.com/dougmoscrop/serverless-...

as well as this: github.com/zeit/next.js/issues/6447

Code of Conduct Report abuse