Deploying a directory

· 1 min read

The deploy for this site is two steps, and the second one is cp.

Build

npm run build

The build type-checks, bundles the app, then prerenders every route to dist/<route>/index.html — in Node, with no browser involved — and writes the feeds, the sitemap and llms.txt next to them.

Copy

Upload dist/ to any static host. If the site lives under a sub-path, build with BASE_PATH=/notes and every link, asset and feed URL follows.