diff options
Diffstat (limited to 'examples/next/pages/index.tsx')
-rw-r--r-- | examples/next/pages/index.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/next/pages/index.tsx b/examples/next/pages/index.tsx index 237ec2604..3d58a2707 100644 --- a/examples/next/pages/index.tsx +++ b/examples/next/pages/index.tsx @@ -2,7 +2,7 @@ import Head from "next/head"; import Link from "next/link"; import React from "react"; import styles from "../styles/Home.module.css"; - +import nextPackage from "next/package.json"; export async function getStaticProps(ctx) { return { props: {}, @@ -20,7 +20,8 @@ export default function Home({}) { <main className={styles.main}> <h1 className={styles.title}> - Welcome to <a href="https://nextjs.org">Next.js!</a> + Welcome to <a href="https://nextjs.org">Next.js!</a> v + {nextPackage.version} </h1> <p className={styles.description}> |