Install Next.JS using npm or yarn. For example:
npx create-next-app my-static-ssr-app
cd my-static-ssr-app
After doing this, add the code located in pages/
After creating the page, you can run your Next.JS app:
npm run dev
This command starts the development server, and you can access your app at http://localhost:3000
.
Install Next.JS with Typescript:
npx create-next-app my-static-ssr-app --use-npm --typescript
cd my-static-ssr-app
After doing this, add the code located in pages/
After creating the page, you can run your Next.JS app:
npm run dev
This command starts the development server, and you can access your app at http://localhost:3000
.