きっかけはビルドエラーでした ランキング参加中プログラミング ランキング参加中旅行ランキング参加中弱小ブロガーズ しまなみ海道の観光ガイドサイトを開発していたとき、MDX ファイルを読み込む処理を書きました。 // lib/spots.ts import fs from 'fs' import path from 'path' export function getAllSpots() { const dir = path.join(process.cwd(), 'content/spots') return fs.readdirSync(dir) } 「動くだろう」と思ってビルドしたら、こん…