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

chore: support next.js 15 #4387

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
99cb249
chore: upgrade to next.js 15
siddhsuresh Oct 26, 2024
a362d8a
fix: await cookies and headers in blitz auth
siddhsuresh Oct 26, 2024
fe8ed06
chore: run codemod
siddhsuresh Oct 26, 2024
19884bf
upgrade to latest react
siddhsuresh Oct 26, 2024
668ed49
fix: add await to blitz rpc handler
siddhsuresh Oct 26, 2024
5d4d4da
chore: upgrade to latest dynamic import
siddhsuresh Oct 26, 2024
714f293
fix: remaining type fixes
siddhsuresh Oct 26, 2024
1802227
Create wild-news-shop.md
siddhsuresh Oct 26, 2024
b25ec48
fix: react types
siddhsuresh Oct 26, 2024
f9301b6
Merge branch 'siddharth/upgrade-to-next-15' of https://github.com/bli…
siddhsuresh Oct 26, 2024
3628938
upgrade testing library
siddhsuresh Oct 26, 2024
170af30
fix turbopack exports
siddhsuresh Oct 26, 2024
dfb5d6b
fix
siddhsuresh Oct 26, 2024
9219ec7
chore: remove outdated `@testing-library/react-hooks`
siddhsuresh Oct 26, 2024
12faac9
Merge branch 'siddharth/upgrade-to-next-15' of https://github.com/bli…
siddhsuresh Oct 26, 2024
a4f4e7e
upgrade testing library
siddhsuresh Oct 26, 2024
f303bc6
fix turbopack exports
siddhsuresh Oct 26, 2024
ad493c4
fix
siddhsuresh Oct 26, 2024
b0bab15
Merge branch 'main' into siddharth/upgrade-to-next-15
siddhsuresh Dec 7, 2024
83d236e
Merge branch 'siddharth/upgrade-to-next-15' of https://github.com/bli…
siddhsuresh Dec 20, 2024
a0448ff
upgrade to react 19
siddhsuresh Dec 20, 2024
f8ab8fc
fix unit tests
siddhsuresh Dec 20, 2024
fbd6473
fix
siddhsuresh Dec 20, 2024
a38caab
fix
siddhsuresh Dec 20, 2024
2bb10b8
fix again
siddhsuresh Dec 20, 2024
4916f75
Merge branch 'main' into siddharth/upgrade-to-next-15
siddhsuresh Dec 23, 2024
d1d4bd5
Merge branch 'main' into siddharth/upgrade-to-next-15
siddhsuresh Dec 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/blitz-auth/src/server/auth-sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,10 @@ const makeProxyToPublicData = <T extends SessionContextClass>(ctxClass: T): T =>
export async function getBlitzContext(): Promise<Ctx> {
try {
const {headers, cookies} = require("next/headers")
const reqHeader = Object.fromEntries(headers())
const csrfToken = cookies().get(COOKIE_CSRF_TOKEN())
const cookieStore = await cookies()
siddhsuresh marked this conversation as resolved.
Show resolved Hide resolved
const headersStore = await headers()
siddhsuresh marked this conversation as resolved.
Show resolved Hide resolved
const reqHeader = Object.fromEntries(headersStore)
const csrfToken = cookieStore.get(COOKIE_CSRF_TOKEN())
if (csrfToken) {
reqHeader[HEADER_CSRF] = csrfToken.value
}
Expand Down