Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated with-typescript example to SSG (#11081)
* Update with-typescript example to SSG * Fixed usage of localhost inside SSG methods Co-authored-by: Luis Alvarez <luis@zeit.co>
- Loading branch information
1 parent
bf93ca4
commit 43c1190
Showing
7 changed files
with
53 additions
and
78 deletions.
There are no files selected for viewing
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
import * as React from 'react' | ||
import Link from 'next/link' | ||
import Layout from '../components/Layout' | ||
import { NextPage } from 'next' | ||
|
||
const IndexPage: NextPage = () => { | ||
return ( | ||
<Layout title="Home | Next.js + TypeScript Example"> | ||
<h1>Hello Next.js 👋</h1> | ||
<p> | ||
<Link href="/about"> | ||
<a>About</a> | ||
</Link> | ||
</p> | ||
</Layout> | ||
) | ||
} | ||
const IndexPage = () => ( | ||
<Layout title="Home | Next.js + TypeScript Example"> | ||
<h1>Hello Next.js 👋</h1> | ||
<p> | ||
<Link href="/about"> | ||
<a>About</a> | ||
</Link> | ||
</p> | ||
</Layout> | ||
) | ||
|
||
export default IndexPage |
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
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
This file was deleted.
Oops, something went wrong.