You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
API routes have to be inline exported function declarations #1587
It should just work like the first code example. Internally, this library probably uses function names instead of named export names to determine the endpoint functions. It shouldn't.
retested on the v2 beta; all export styles (named export of a const, export const, aliased specifiers) work for API routes in dev and production — fixed by the v2 route-analysis rewrite, closing.
Activity
brenelz commentedon Jul 18, 2026
retested on the v2 beta; all export styles (named export of a const, export const, aliased specifiers) work for API routes in dev and production — fixed by the v2 route-analysis rewrite, closing.