import React from "react"; import Head from "next/head"; import { GetStaticProps } from "next"; import styles from "styles/Home.module.css"; export const getStaticProps: GetStaticProps = async () => { // TODO: Fetch links here return { props: { links: [] }, // will be passed to the page component as props // Next.js will attempt to re-generate the page: // - When a request comes in // - At most once every second revalidate: 1, }; }; const Home: React.FC = ({ links }: any) => { console.log({ links }); // TODO: Remove starter code return (
Create Next App

Welcome to Next.js!

Get started by editing{" "} pages/index.js

Documentation →

Find in-depth information about Next.js features and API.

Learn →

Learn about Next.js in an interactive course with quizzes!

Examples →

Discover and deploy boilerplate example Next.js projects.

Deploy →

Instantly deploy your Next.js site to a public URL with Vercel.

); }; export default Home;