elysiajs / elysia

Ergonomic Framework for Humans
https://elysiajs.com
MIT License
9.1k stars 193 forks source link

`redirect` doesn't work with `aot: false` #644

Closed bogeychan closed 1 month ago

bogeychan commented 1 month ago

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

SaltyAom commented 1 month ago

Should be fixed on 321a7c5, published under 1.0.21