Skip to content

Commit

Permalink
Merge pull request #3 from supertokens/updated_st_example
Browse files Browse the repository at this point in the history
Updated nextjs in supertokens example
  • Loading branch information
rishabhpoddar authored Apr 7, 2022
2 parents 4bbe9f0 + a0cfddb commit 67f1db7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
6 changes: 2 additions & 4 deletions examples/with-supertokens/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
.env*.local

# vercel
.vercel
6 changes: 6 additions & 0 deletions examples/with-supertokens/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
}

module.exports = nextConfig
15 changes: 10 additions & 5 deletions examples/with-supertokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"next": "latest",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"supertokens-auth-react": "^0.19.0",
"supertokens-node": "^9.0.0"
"react": "^18.0.0",
"react-dom": "^18.0.0",
"supertokens-auth-react": "^0.20.1",
"supertokens-node": "^9.1.1"
},
"devDependencies": {
"eslint": "8.12.0",
"eslint-config-next": "12.1.4"
}
}

0 comments on commit 67f1db7

Please sign in to comment.