Open lifeiscontent opened 6 months ago
@TooTallNate any ideas here? we're having a ton of traffic on our site today and would really like to increase this 😅
Can you elaborate on "fails to deploy"? What are you seeing? Can you share a reproduction, or a deployment URL?
@TooTallNate yep, here you go: https://vercel.com/sort-xyz/sorthub/BPFNXzZGm6jrgnnNFLt6FKf2NbUC
Ok, so ya, you don't configure maxDuration
for Remix routes using vercel.json
. Do it the export const config = { ... }
way like described in the Remix on Vercel docs page.
@TooTallNate I tried that as well, and the build wouldn't even compile, complained about something to do with some files in node modules already existing. let me revert to that commit and send over a URL
@TooTallNate here you go: https://vercel.com/sort-xyz/sorthub/3r7gRrzaifeqz7SDvJzWUpVhVmVw
This error seems unrelated to the export const config
part, but did you see this issue which looks similar? https://github.com/remix-run/remix/issues/8813
this is the entire diff, removing it fixes the build
@TooTallNate ^
interestingly enough, adding the config to root.tsx
does not break the build
That is strange. I will relay that to the Remix team. If you could give a standalone reproduction that would help as well.
I'll see what I can do, thanks!
Ya that would be helpful. I wasn't able to reproduce using the vc init remix
template, and changing the config of both of those routes in the template to have export const config = { maxDuration: 30 }
worked for me.
following the docs using the
export const config = { ... }
as well as the vercel.json fails to deploy for mehttps://vercel.com/docs/functions/configuring-functions/duration