はやとに教えてもらったブログの使い方教えてもらったおれはそれ肌で感じここにログ残す。
環境整えログ
tabisoft:~❯❯❯ git clone git@github.com:manybugsdev/tabilog.git
Cloning into 'tabilog'...
remote: Enumerating objects: 94, done.
remote: Counting objects: 100% (94/94), done.
remote: Compressing objects: 100% (75/75), done.
remote: Total 94 (delta 7), reused 90 (delta 6), pack-reused 0 (from 0)
Receiving objects: 100% (94/94), 383.81 KiB | 1.16 MiB/s, done.
Resolving deltas: 100% (7/7), done.
tabisoft:~❯❯❯ cd tabilog/
tabisoft:tabilog❯❯❯ ls
README.md app next-env.d.ts next.config.js package-lock.json package.json public tsconfig.json utils.ts
tabisoft:tabilog❯❯❯ npm install
added 114 packages, and audited 115 packages in 4s
70 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
npm notice
npm notice New minor version of npm available! 10.5.0 -> 10.9.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.0
npm notice Run npm install -g npm@10.9.0 to update!
npm notice
tabisoft:tabilog❯❯❯ npm run dev
> dev
> next dev
▲ Next.js 15.0.3
- Local: http://localhost:3000
✓ Starting...
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
✓ Ready in 1249ms
開発サーバがあっという間に起動したおれはびびってそのまま一晩寝た。
記事作成と投稿(生成)
さあ投稿だ。
tabisoft:tabilog❯❯❯ npm run build
> build
> next build
▲ Next.js 15.0.3
Creating an optimized production build ...
✓ Compiled successfully
✓ Linting and checking validity of types
✓ Collecting page data
✓ Generating static pages (6/6)
✓ Collecting build traces
✓ Exporting (3/3)
✓ Finalizing page optimization
Route (app) Size First Load JS
┌ ○ / 141 B 100 kB
├ ○ /_not-found 896 B 101 kB
└ ● /posts/[...slug] 141 B 100 kB
├ /posts/first_post
└ /posts/install_log
+ First Load JS shared by all 100 kB
├ chunks/4bd1b696-80bcaf75e1b4285e.js 52.5 kB
├ chunks/517-bda59e8caf92d192.js 45.7 kB
└ other shared chunks (total) 1.86 kB
○ (Static) prerendered as static content
● (SSG) prerendered as static HTML (uses generateStaticParams)
みてみるか。
tabisoft:tabilog❯❯❯ npm run dev
ローカルのdevwebサーバをブラウザから覗く。 おお、表示されてる!このページが。
- しかもちゃんと自動SSGや。すぐ確認出来てイッテヨシ!
さいごに
おわり。