Skip to content

Commit c5bff98

Browse files
committed
chore: fix broken auth demo
1 parent 7ab09cb commit c5bff98

File tree

6 files changed

+70
-200
lines changed

6 files changed

+70
-200
lines changed

demos/default/pages/css/index.module.css

-8
This file was deleted.

demos/default/pages/css/index.tsx

-73
This file was deleted.

demos/next-auth/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
"next": "^12.2.0",
2727
"next-auth": "^4.7.0",
2828
"nodemailer": "^6.6.3",
29-
"react": "^17.0.2",
30-
"react-dom": "^17.0.2"
29+
"react": "^18.0.0",
30+
"react-dom": "^18.0.0"
3131
},
3232
"devDependencies": {
33-
"@netlify/next-runtime": "*",
33+
"@netlify/plugin-nextjs": "*",
3434
"@types/fs-extra": "^9.0.13",
3535
"@types/jest": "^27.4.1",
3636
"@types/node": "^17.0.14",
37-
"@types/react": "^17.0.39",
37+
"@types/react": "^18.0.0",
3838
"husky": "^7.0.4",
3939
"npm-run-all": "^4.1.5",
4040
"typescript": "^4.5.5"
@@ -45,4 +45,4 @@
4545
"engines": {
4646
"node": ">=16.0.0"
4747
}
48-
}
48+
}

demos/next-auth/pages/_app.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { SessionProvider } from "next-auth/react"
2-
import type { AppProps } from "next/app"
32
import "./styles.css"
43

54
// Use of the <SessionProvider> is mandatory to allow components that call
65
// `useSession()` anywhere in your application to access the `session` object.
7-
export default function App({ Component, pageProps }: AppProps) {
6+
export default function App({ Component, pageProps }) {
87
return (
98
<SessionProvider session={pageProps.session} refetchInterval={0}>
109
<Component {...pageProps} />

demos/next-auth/tsconfig.json

+17-14
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
11
{
2+
"extends": "../../tsconfig.json",
23
"compilerOptions": {
3-
"target": "es5",
44
"lib": [
5-
"dom",
6-
"dom.iterable",
7-
"esnext"
5+
"es2019",
6+
"dom"
87
],
9-
"allowJs": true,
10-
"skipLibCheck": true,
11-
"strict": true,
12-
"forceConsistentCasingInFileNames": true,
8+
"strict": false,
139
"noEmit": true,
14-
"esModuleInterop": true,
15-
"module": "esnext",
10+
"incremental": true,
1611
"moduleResolution": "node",
1712
"resolveJsonModule": true,
1813
"isolatedModules": true,
19-
"jsx": "preserve",
20-
"incremental": true
14+
"jsx": "preserve"
2115
},
22-
"include": ["process.d.ts", "next-env.d.ts", "next-auth.d.ts", "**/*.ts", "**/*.tsx"],
23-
"exclude": ["node_modules"]
16+
"include": [
17+
"process.d.ts",
18+
"next-env.d.ts",
19+
"next-auth.d.ts",
20+
"**/*.ts",
21+
"**/*.tsx",
22+
"pages/_app.js"
23+
],
24+
"exclude": [
25+
"node_modules"
26+
]
2427
}

0 commit comments

Comments
 (0)