diff options
author | 2021-11-02 23:43:20 -0700 | |
---|---|---|
committer | 2021-11-02 23:43:20 -0700 | |
commit | a5181c8ed14cfe779299e9086fbac3c729d21a98 (patch) | |
tree | 8cd67d6275e97e7c2ed3e642da60f364dc0c6ee9 /examples/next/pages/index.tsx | |
parent | aa545ac0dc5260c001858126c302f738db7f6664 (diff) | |
download | bun-a5181c8ed14cfe779299e9086fbac3c729d21a98.tar.gz bun-a5181c8ed14cfe779299e9086fbac3c729d21a98.tar.zst bun-a5181c8ed14cfe779299e9086fbac3c729d21a98.zip |
[examples] Display Next.js version in example
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}> |