Repository navigation
Conversation
Nuxt replaces the hand-assembled Vite + vite-ssg + vue-router + unhead setup with the mainstream, actively maintained Vue framework, and `nuxt generate` pre-renders the site exactly as before. - src/ -> app/ (Nuxt 4 layout): views become file-based pages (index/campus/club), App.vue becomes layouts/default.vue, PageNotFound becomes error.vue; components, styles and data move as-is - Page title and accent colour come from definePageMeta; the error page passes its accent to the layout - experimental.prerenderErrorPages renders error.vue into 404.html at build time, so unknown URLs still get real content with a 404 status - nitro.prerender.autoSubfolderIndex: false keeps club.html/campus.html, served by GitHub Pages without a trailing-slash redirect - Links use NuxtLink, which also handles external URLs (adding rel="noopener noreferrer" for new tabs), so Button no longer picks between <a>/RouterLink itself - Head tags (lang, description, theme colour, icons, manifest) move to nuxt.config.ts; component styles are inlined into each page by Nuxt - ESLint uses @nuxt/eslint (aware of auto-imports); `v-slot:` is now the `#` shorthand throughout; type-checking is `nuxt typecheck` - Removed: vite-ssg and its patch, beasties, @unhead/vue (held on v2), direct vue-router/vite/@vitejs/plugin-vue, and the hand-written tsconfigs/ESLint setup - CI deploys .output/public Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DxVDmLPux3Tx7RV1v4yznD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
6 of 7 (stacked on the cleanup PR, so this diff shows only the framework migration). Library swaps (CSS grid, reset, Crafatar, icons, fonts) follow in the next PR. Most of the line count is
bun.lock.Why
The site was a hand-assembled stack: Vite + vite-ssg + vue-router + unhead + beasties.
@unhead/vueon v2 andbeastieson 0.3.Nuxt is the mainstream, actively maintained Vue framework.
nuxt generatepre-renders the site just like before, and it opens up official modules (icons, fonts, images), which the next PR uses.Changes
src/→app/(Nuxt 4 layout):index,campus,club);App.vuebecomeslayouts/default.vue;PageNotFoundbecomeserror.vue;definePageMeta. The error page passes its accent to the layout.experimental.prerenderErrorPagesrenderserror.vueinto404.htmlat build time. Without it, Nuxt writes an empty shell that only fills in once JavaScript runs.nitro.prerender.autoSubfolderIndex: falsekeepsclub.html/campus.html, which GitHub Pages serves without a trailing-slash redirect.NuxtLink, which also handles external URLs and addsrel="noopener noreferrer"for new tabs. Button no longer has to choose between<a>and RouterLink itself.nuxt.config.ts. Nuxt inlines component styles into each page.@nuxt/eslint, which understands auto-imports. Slots use the#shorthand throughout. Type-checking isnuxt typecheck.@unhead/vue, the direct vue-router/vite/plugin-vue dependencies, and the hand-written tsconfigs and ESLint config..output/public.Verification
bun install --frozen-lockfile, as CI runs it: lint,nuxt typecheckandnuxt generateall pass..output/publicbehind a static server that mimics GitHub Pages: 200 for/,/cluband/campus, and 404 with full content for unknown paths./campusand the 404 page./clubdiffers only in the shuffled credits, and/only in the video frame.<title>per page;noopener noreferrer.nuxt devserves every page.Generated by Claude Code