remix-run / grunge-stack

The Remix Stack for deploying to AWS with DynamoDB, authentication, testing, linting, formatting, etc.
https://remix.run/stacks
MIT License
438 stars 95 forks source link

fix: add `installGlobals` to server handler for node16.x #167

Closed shamsup closed 1 year ago

shamsup commented 1 year ago

The app.arc file specifies the node16.x runtime, which doesn't have the Fetch globals (Request, Response, Headers, etc), so deploying this stack right after creating will have a ReferenceError: Request is not defined.

TheRobotCarlson commented 1 year ago

Looks like this solves my issue, I should have checked here first! https://github.com/remix-run/grunge-stack/issues/168

I made similar modifications to my application and was able to deploy successfully.

MichaelDeBoey commented 1 year ago

Remix v2 requires Node 18 I updated app.arc in #169