Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remix action/loaders with redirect return 504 error from cloudfront due to lambda timeout #395

Closed
barakcodes opened this issue May 9, 2024 · 0 comments · Fixed by #427
Closed
Assignees

Comments

@barakcodes
Copy link

barakcodes commented May 9, 2024

using SST V: 0.0.357

It seems Dax broke redirect in Remix with the latest streaming support addition.
The following action

export async function action() {
  await db.increment()
  return redirect('/counter')
}

will timeout, but if you change the redirect to something like json(some data) it works.

Reproduction

Deploy a new/existing project with sst, and trigger an action with a redirect response.
Here's a template I used to reproduce the issue after running into it within my project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants