This repository contains the source code for b.0218.jp
, a web application built using Next.js and TypeScript. Article data is stored in a separate repository and loaded through a submodule.
Article data is managed in a separate repository and loaded via submodule.
Before you begin development, make sure to prepare the .env file with the following contents:
TZ=Asia/Tokyo
GITHUB_GRAPHQL_TOKEN="GitHub Token"
NEXT_PUBLIC_GA_MEASUREMENT_ID="Google Analytics ID"
You need to run prebuild
because you need to pre-build the markdown files.
npm run prebuild
However, if you have run npm run build
beforehand, you do not need to run npm run prebuild
.
To start the Next.js development server, run the following command:
npm run dev
To execute the Next.js build for production, run the following command:
npm run build