Leave Localhost logoLeave LocalhostDocs
Content

Removing Blog and Changelog

Remove the marketing blog and/or changelog cleanly when your product does not need them.

The blog and changelog are optional. Because they are local MDX, removing them is mostly deleting files. You can remove one without the other.

Remove the content only (keep the option)

Delete the .mdx files in apps/marketing/content/blog/ and/or apps/marketing/content/changelog/. The loaders return an empty list when a directory is empty or missing, so the listing pages render an honest empty state and nothing breaks. This is the safest option if you might publish later.

Remove a feature entirely

To drop the blog (the changelog is symmetric):

  1. Delete the routes: apps/marketing/src/app/blog/ (both page.tsx and [slug]/page.tsx).
  2. Delete the loader and schema: apps/marketing/src/lib/content/blog.ts.
  3. Delete the content directory: apps/marketing/content/blog/.
  4. Remove blog links from the site navigation/footer config in apps/marketing/src/config.
  5. Remove any blogPostingJsonLd usage.

If you remove both the blog and changelog, you can also delete the shared apps/marketing/src/lib/content/ helpers (util.ts, frontmatter.ts) and the apps/marketing/content/ directory.

Verify

bun --cwd apps/marketing run typecheck
bun --cwd apps/marketing run build

A green build confirms no route, sitemap, or navigation entry still references the removed content.

On this page