90 - Ratchagitja.md - Setup Astro

Livestream

Problem

5k+ markdown files caused Astro dev server to be very slow and also throws error on an unknown reason.

  File:
    /Users/narze/Code/github.com/narze/ratchagitja.md/entries/ก/139/61/17224572.md?astroContentCollectionEntry=true
  Stacktrace:
UnknownContentCollectionError
    at getEntryModuleBaseInfo (file:///Users/narze/Code/github.com/narze/ratchagitja.md/web/node_modules/.pnpm/[email protected]/node_modules/astro/dist/content/vite-plugin-content-imports.js:226:11)
    at async getContentEntryModule (file:///Users/narze/Code/github.com/narze/ratchagitja.md/web/node_modules/.pnpm/[email protected]/node_modules/astro/dist/content/vite-plugin-content-imports.js:139:77)
    at async TransformContext.transform (file:///Users/narze/Code/github.com/narze/ratchagitja.md/web/node_modules/.pnpm/[email protected]/node_modules/astro/dist/content/vite-plugin-content-imports.js:73:67)
    at async Object.transform (file:///Users/narze/Code/github.com/narze/ratchagitja.md/web/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:44283:30)
    at async loadAndTransform (file:///Users/narze/Code/github.com/narze/ratchagitja.md/web/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:54950:29)
    at async instantiateModule (file:///Users/narze/Code/github.com/narze/ratchagitja.md/web/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:55875:10)

(Found the cause, I cannot use symlinks within src/content folder)

It took 5 minutes to build on Vercel

https://ratchagitja.vercel.app/entries