Skip to content

Commit e11dbb7

Browse files
committed
feat(nextjs): upgrade nextjs to rc2
1 parent 7f790ea commit e11dbb7

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

next.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

next.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import type { NextConfig } from 'next';
2+
import withLinaria from 'next-with-linaria';
3+
4+
const nextConfig: NextConfig = {};
5+
6+
export default withLinaria(nextConfig);

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
"css-loader": "^7.1.2",
3434
"date-fns": "^4.1.0",
3535
"mini-css-extract-plugin": "^2.9.1",
36-
"next": "15.0.0-rc.0",
36+
"next": "15.0.0-rc.1",
3737
"next-auth": "5.0.0-beta.13",
3838
"next-with-linaria": "^0.7.0",
39-
"react": "19.0.0-rc-67fee58b-20240926",
40-
"react-dom": "19.0.0-rc-67fee58b-20240926",
39+
"react": "19.0.0-rc-83825814-20241015",
40+
"react-dom": "19.0.0-rc-83825814-20241015",
4141
"typescript-case-convert": "^1.3.5",
4242
"vite-tsconfig-paths": "^5.0.1",
4343
"zod": "^3.22.4"

src/app/logout/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export async function GET(req: NextRequest) {
1414
throw new Error('Invalid state');
1515
}
1616

17-
cookies().delete('logout_state');
17+
(await cookies()).delete('logout_state');
1818

1919
return await signOut({ redirectTo: '/', redirect: true });
2020
}
@@ -29,7 +29,7 @@ export async function GET(req: NextRequest) {
2929
}
3030

3131
const rand = crypto.randomUUID().replaceAll('-', '');
32-
cookies().set('logout_state', rand);
32+
(await cookies()).set('logout_state', rand);
3333

3434
return redirect(`${session.logoutUrl}&state=${rand}`);
3535
}

tsconfig.eslint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"jest.preset.js",
1414
"eslint.config.mjs",
1515
"next-env.d.ts",
16-
"next.config.js",
16+
"next.config.ts",
1717
"plopfile.ts",
1818
"src/**/*.ts",
1919
"src/**/*.tsx",

0 commit comments

Comments
 (0)