Closed midnightcodr closed 1 year ago
For Vercel, you will need to install @remix-run/vercel
package to dependencies and also update your api/image
route to point to a static Vercel url.
There is an example in the examples folder: https://github.com/Josh-McFarlin/remix-image/blob/master/examples/vercel/app/routes/api/image.ts
Thanks. I updated to use the image.ts
from vercel example and installed remix-image-sharp
(I already had @remix-run/vercel installed when I reported the issue), problem Is now fixed.
Describe the bug
Hi, I followed the instruction at https://remix-image.mcfarl.in/docs/intro and created two files as exactly the same as the examples, app/routes/api/image.js and app/routes/img.tsx
Here's the
package.json
So it's a very basic vanilla remix app. It runs fine locally, but when deployed to Vercel, I am getting the 500 error even on the landing page (https://test-remix-image2.vercel.app). The error log shows the following
Your Example Website or App
https://test-remix-image2.vercel.app
Steps to Reproduce the Bug or Issue
Open https://test-remix-image2.vercel.app and you'll see a 500 error page.
Expected behavior
I expect the home page and the image route (/img) to function properly.
Screenshots or Videos
No response
Platform
Additional context
Free tier Vercel service