This file contains hidden or 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
/* | |
Post structure: | |
<main> | |
<section> | |
<article> | |
<header> | |
<h1>Main Post Title</h2> | |
<p>Intro text</p> | |
</header> |
This file contains hidden or 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
<meta | |
http-equiv="Content-Security-Policy" | |
content="script-src 'strict-dynamic' | |
'sha256-XOzjewwkvGMLaoj+oYCiOZ3kRwb6RT1Ph6vn4qL+XI0=' | |
'sha256-QSxH3dqIUPdeBvyxSZSuIbZfgtCo/yuqnzU+5gtq9Ak=' | |
'sha256-7V8IQTE3j8PL2rD62J9XsmUhchGnkkyNIQfwoYVK04I=' | |
'unsafe-inline' | |
http: https:;" | |
slug="/" | |
> |
This file contains hidden or 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
<meta | |
http-equiv="Content-Security-Policy" | |
content="script-src 'strict-dynamic' | |
'sha256-XOzjewwkvGMLaoj+oYCiOZ3kRwb6RT1Ph6vn4qL+XI0=' | |
'unsafe-inline' | |
http: https:;" | |
slug="/" | |
> |
This file contains hidden or 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
... | |
// Next.js libraries | |
import Document, { Html, Head, Main, NextScript } from 'next/document' | |
// Next Strict Content Security Policy | |
import { NextStrictCSP } from 'next-strict-csp' | |
... |
This file contains hidden or 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
... | |
// Next.js libraries | |
import Document, { Html, Head, Main, NextScript } from 'next/document' | |
// Next Strict Content Security Policy | |
import { NextStrictCSP } from 'next-strict-csp' | |
... |
This file contains hidden or 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
// React | |
import { useEffect, useState } from 'react' | |
// Next.js | |
import Head from 'next/head' | |
import Link from 'next/link' | |
// Custom Components | |
import BackToHome from 'components/BackToHome' |
This file contains hidden or 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
// Next.js libraries | |
import Head from 'next/head' | |
// Custom Components | |
import BackToHome from 'components/BackToHome' | |
// Page component | |
export default function IncrementalStaticGeneration({ jsonData }) { | |
return ( | |
<> |
This file contains hidden or 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
// Next.js libraries | |
import Head from 'next/head' | |
// Custom Components | |
import BackToHome from 'components/BackToHome' | |
// Page component | |
export default function ServerSideRendering({ jsonData }) { | |
return ( | |
<> |
This file contains hidden or 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
// Next.js libraries | |
import Head from 'next/head' | |
// Custom Components | |
import BackToHome from 'components/BackToHome' | |
// Page component | |
export default function StaticSideGeneration({ jsonData }) { | |
return ( | |
<> |
This file contains hidden or 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
{ | |
"name": "my-first-gcf", | |
"version": "0.1.0", | |
"dependencies": { | |
"node-fetch": "~2.6.0" | |
} | |
} |
NewerOlder