How can I use the server-side website construct with Remix? #288
bitofbreeze
started this conversation in
Constructs
Replies: 1 comment
-
After some trial, the most concise way I could find is to have your serverless app with serverless-lift installed and:
Hopefully that helps others. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The server-side website construct is a perfect match for deploying a Remix site but I'm not quite sure how to configure the lambda handler. I tried running
npm run build
in the Remix app directory/web
, which generates/web/build/index.js
. I added the following to my serverless file:but I get
I found this repo that doesn't use Lift to do it, but it oddly uses Remix's Architect package, which seems a bit hacky since we are not using Architect.
I also found this repo which seems better but it also uses the Remix serverBuildTarget of 'arc' and isn't a standard serverless plugin.
SST has a specific construct for Remix, so I can try going through its source for clues but I'm betting someone has used Lift with Remix before who could make it easier. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions