This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { NextPage } from 'next' | |
import Head from 'next/head' | |
import Image from 'next/image' | |
const Doggo: NextPage = () => { | |
return ( | |
<div> | |
<Head> | |
<title>A Doggo</title> | |
</Head> | |
<main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nextConfig = { | |
reactStrictMode: true, | |
images: { | |
domains: [ | |
"loremflickr.com" // <- added this | |
] | |
} | |
} | |
module.exports = nextConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { NextPage } from 'next' | |
import Head from 'next/head' | |
import Image from 'next/image' | |
import Link from 'next/link' | |
import styles from '../styles/Home.module.css' | |
const Home: NextPage = () => { | |
return ( | |
<div className={styles.container}> | |
<Head> | |
<title>Create Next App</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { NextPage } from 'next' | |
import Head from 'next/head' | |
import Image from 'next/image' | |
import Link from 'next/link' | |
const Doggo: NextPage = () => { | |
return ( | |
<div> | |
<Head> | |
<title>A Doggo</title> | |
</Head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Head from "next/head"; | |
import Navbar from "../components/Navbar"; | |
import styles from "../styles/Home.module.css"; | |
export default function Protected() { | |
return ( | |
<div className={styles.container}> | |
<Head> | |
<title>Protected page</title> | |
<meta name="description" content="Generated by create next app" /> | |
<link rel="icon" href="/favicon.ico" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AUTH0_SECRET=<YOUR_AUTH0_SECRET> | |
AUTH0_BASE_URL=http://localhost:3000 | |
AUTH0_ISSUER_BASE_URL=<YOUR_AUTH0_DOMAIN> | |
AUTH0_CLIENT_ID=<YOUR_AUTH0_CLIENT_ID> | |
AUTH0_CLIENT_SECRET=<YOUR_AUTH0_CLIENT_SECRET> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { handleAuth } from '@auth0/nextjs-auth0'; | |
export default handleAuth(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import '../styles/globals.css' | |
import { UserProvider } from '@auth0/nextjs-auth0'; | |
export default function App({ Component, pageProps }) { | |
return ( | |
<UserProvider> | |
<Component {...pageProps} /> | |
</UserProvider> | |
); | |
} |
OlderNewer