Isolated learning atmosphere · v4.x
Nuxt Layers Capstone: Splitting This Blog
Based on the official Nuxt release notesvantolbennett.com started as a blog. Then it grew tutorials, then step pages with progress tracking, then a content collection with its own schema, then its own RSS feed. At some point it stopped being a blog with a tutorials section and became two products sharing a nuxt.config.ts.
This capstone is the commit that separated them: packages/learn-layer now owns everything under /learn, and apps/web is a blog again. The page you're reading is served by that layer.
Nothing here is a toy. The file paths, the config diffs, the numbers Nuxt Content printed, and the deploy notes are from the migration itself. You can clone the repo and read the result.
What we cover here#
- The Split — what moved, in what order, and the one boundary check that decides whether a split is real.
- Ship It — build, deploy, and the four things that only break in production.
What "done" looks like#
// apps/web/nuxt.config.ts
export default defineNuxtConfig({
// The whole /learn platform lives in this layer. See packages/learn-layer.
extends: ["@vvantol2000/learn-layer"],
modules: [
"@nuxt/content",
"@nuxtjs/tailwindcss",
"@nuxt/image",
"shadcn-nuxt",
"nuxt-presence",
"nuxt-assistant",
],
});
Comment out that one line and the entire learning platform — three routes, ninety-odd markdown files, an RSS feed and a content collection — leaves the site cleanly, and the blog still builds.
How this series works#
Each step follows the same path: What it is → Why you'd care → Before → After → Do it yourself → Gotchas → Recap.
Prerequisites: The Basics, Going Further, Advanced.