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

fix(nextjs): Add new potential location for Next.js request AsyncLocalStorage #9006

Merged
merged 2 commits into from Sep 12, 2023

Conversation

lforst
Copy link
Member

@lforst lforst commented Sep 12, 2023

Fixes #8977

Next.js moved the internal file we depend on to grab headers of incoming request so we need to check the new location.

@@ -1,3 +1,3 @@
export async function PUT() {
export async function PUT(): Promise<Response> {
Copy link
Member Author

Choose a reason for hiding this comment

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

For some reason the new version wants types here. I think nextjs has some kind of ts plugin that checks for this.

@lforst lforst merged commit 5a42bd9 into develop Sep 12, 2023
96 of 98 checks passed
@lforst lforst deleted the lforst-fix-async-storage branch September 12, 2023 10:40
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 this pull request may close these issues.

Incorrect NEXTJS_REQUEST_ASYNC_STORAGE_MODULE_PATH in Next.js 13.4.20
2 participants