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

[next] Fix edge runtime for route groups #9764

Merged
merged 5 commits into from Apr 7, 2023
Merged

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented Apr 6, 2023

This ensures we use the correct short name when generating edge functions with route groups from app directory.

Example deployment with fix can be seen here https://next-debug-edge-runtime-1ar7agbjh-vtest314-ijjk-testing.vercel.app/group-no-layout

Fixes: vercel/next.js#43458

@ijjk ijjk added semver: patch PR contains bug fixes area: next pr: automerge Automatically merge the PR when checks pass labels Apr 6, 2023
shuding
shuding previously approved these changes Apr 6, 2023
t3dotgg
t3dotgg previously approved these changes Apr 6, 2023
Copy link

@t3dotgg t3dotgg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working great for me in prod!

huozhi
huozhi previously approved these changes Apr 6, 2023
@ijjk ijjk dismissed stale reviews from huozhi, t3dotgg, and shuding via 561f90c April 6, 2023 23:09
@ijjk ijjk merged commit 7a9a519 into main Apr 7, 2023
104 checks passed
@ijjk ijjk deleted the ijjk/fix-edge-route-groups branch April 7, 2023 00:05
@djfarrelly
Copy link

Hi @ijjk - how can I use this in production? We've encountered this issue and with Next 13.2.x w/ app dir it won't work for me. Do I need to set the @vercel/next builder in the vercel.json file to get this to work correctly?

I would love to know what we can do to opt in b/c we're seeing slowness and I'd like to move our app dir project 100% to edge functions.

@ijjk
Copy link
Member Author

ijjk commented Apr 11, 2023

@djfarrelly this should now be available in production, please re-deploy your project and give it a try!

@djfarrelly
Copy link

Thanks @ijjk! My latest deploy worked correctly now - I appreciate the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: next pr: automerge Automatically merge the PR when checks pass semver: patch PR contains bug fixes
Projects
None yet
5 participants