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

redirect doesn't work with aot: false #644

Closed
bogeychan opened this issue May 20, 2024 · 1 comment
Closed

redirect doesn't work with aot: false #644

bogeychan opened this issue May 20, 2024 · 1 comment
Labels
bug Something isn't working pending Should be resolved in next release

Comments

@bogeychan
Copy link
Contributor

What version of Elysia.JS is running?

1.0.20

What platform is your computer?

WSL Ubuntu

What steps can reproduce the bug?

const app = new Elysia({ aot: false }).get('/', ({ redirect }) => redirect('/yay')).listen(8080)

What is the expected behavior?

redirect works

What do you see instead?

redirect is not a function

Additional information

reported on discord

@bogeychan bogeychan added the bug Something isn't working label May 20, 2024
@SaltyAom
Copy link
Member

Should be fixed on 321a7c5, published under 1.0.21

@SaltyAom SaltyAom added the pending Should be resolved in next release label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending Should be resolved in next release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants