Skip to content

iamtatsuki05/iamtatsuki05.github.io

Repository files navigation

Next.js Static Site

English | 日本語

How to operate Bun

setup

  1. Clone the repository with git clone

Bun configuration

  1. Install dependencies: bun install

run script

bun dev                       # start dev server at http://localhost:3000
INCLUDE_DRAFTS=false NEXT_PUBLIC_BASE_PATH='' bun run build
bun run start                 # serve static out/ on :3000
bun run storybook             # start Storybook at http://localhost:6006
bun run storybook:build       # output static build to storybook-static/
# Telemetry: set STORYBOOK_DISABLE_TELEMETRY=1 to opt out

How to operate Docker

setup

  1. Clone the repository with git clone

docker configuration

  1. Dev (hot reload): docker compose up -d --build app
  2. Prod preview: docker compose up -d --build preview

Connect to and disconnect from docker

  1. Connect: docker compose exec app sh
  2. Disconnect: exit

Starting and Stopping Containers

  1. Starting: docker compose start
  2. Stopping: docker compose stop

Directory structure

./ 
├── Dockerfile
├── README.md
├── README_JA.md
├── bunfig.toml
├── compose.yml
├── cypress
├── node_modules
├── public
│   └── images
├── scripts
│   ├── ensure-favicon.ts
│   ├── generate-rss.ts
│   ├── inspect-content.ts
│   ├── optimize-images.ts
│   └── utils
├── src
│   ├── app
│   ├── components
│   ├── content
│   │   ├── blogs
│   │   └── publications
│   ├── data
│   │   └── links.yaml
│   ├── lib
│   ├── locales
│   └── types
├── tests
├── package.json
├── eslint.config.mjs
├── next.config.mjs
├── next-sitemap.config.mts
├── postcss.config.js
├── tsconfig.json
└── vitest.config.mts

Notes

  • i18n: ja/en routes for Home/Links/Publications/Blog index.
  • Feeds/SEO: /sitemap.xml, /robots.txt, /rss.xml generated at build.
  • GitHub Pages: CI config in .github/workflows/deploy.yml sets SITE_URL and base path automatically.

Languages