https://github.com/willin/nextjs-auth0-cloudflare
An Example site using next.js auth0, deployed on Cloudflare Pages.
https://github.com/willin/nextjs-auth0-cloudflare
Last synced: 12 months ago
JSON representation
An Example site using next.js auth0, deployed on Cloudflare Pages.
- Host: GitHub
- URL: https://github.com/willin/nextjs-auth0-cloudflare
- Owner: willin
- Created: 2024-03-01T07:38:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-01T12:28:29.000Z (over 2 years ago)
- Last Synced: 2025-06-13T14:25:23.563Z (12 months ago)
- Language: TypeScript
- Size: 156 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`c3`](https://developers.cloudflare.com/pages/get-started/c3).
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Cloudflare integration
Local Development, create a file called `.env.local`:
```
AUTH0_SECRET='use [openssl rand -hex 32] to generate a 32 bytes value'
AUTH0_BASE_URL='http://localhost:3000'
AUTH0_ISSUER_BASE_URL='https://xxxx.jp.auth0.com'
AUTH0_CLIENT_ID='xxxx'
AUTH0_CLIENT_SECRET='xxxx'
```