mirror of
https://github.com/vitest-dev/vitest.git
synced 2026-02-01 17:36:51 +00:00
* feat: added nextjs example * chore: update * chore: simplify nextjs demo Co-authored-by: Rob Caldecott <robert.caldecott@keyloop.com> Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
34 lines
868 B
TypeScript
34 lines
868 B
TypeScript
import type { NextPage } from 'next'
|
|
import Head from 'next/head'
|
|
import Image from 'next/image'
|
|
|
|
const Home: NextPage = () =>
|
|
<>
|
|
<Head>
|
|
<title>Create Next App</title>
|
|
<meta name="description" content="Generated by create next app" />
|
|
<link rel="icon" href="/favicon.ico" />
|
|
</Head>
|
|
|
|
<main>
|
|
<h1>
|
|
Welcome to Next.js!
|
|
</h1>
|
|
|
|
<footer>
|
|
<a
|
|
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
Powered by{' '}
|
|
<span>
|
|
<Image src="https://assets.vercel.com/image/upload/q_auto/front/favicon/vercel/57x57.png" alt="Vercel Logo" width={72} height={16} />
|
|
</span>
|
|
</a>
|
|
</footer>
|
|
</main>
|
|
</>
|
|
|
|
export default Home
|