Skip to content

Phase 2: Content Migration & Nuxt Content Setup #222

@onmax

Description

@onmax

Goal

Install Nuxt Content, migrate all content, build adapters

Tasks

  • Install @nuxt/content and Nuxt Studio modules
    • pnpm add nuxt-studio@alpha
    • Add to nuxt.config.ts: modules: ['@nuxt/content', 'nuxt-studio']
    • Configure: studio: { route: '/_studio', repository: { provider: 'github', owner: 'nimiq', repo: 'nimiq-website', branch: 'main' } }
    • Setup GitHub OAuth: https://content.nuxt.com/docs/studio/setup
    • Set STUDIO_GITHUB_CLIENT_ID and STUDIO_GITHUB_CLIENT_SECRET in .env
  • Design content schema (frontmatter structure, collection types)
  • Run nr prismic:sync → fetch all content as JSON
  • Run nr prismic:convert → generate MD files + download images
  • Build content adapters
    • composables/usePrismicAdapter.ts
    • composables/useContentAdapter.ts
  • Validate output (automated checks)
  • Content editor review of migrated content

Deliverables

  • All content in /content/ as Markdown
  • All images downloaded to /public/content/images/
  • Validation report with zero critical issues
  • Adapters functional

Timeline

Week 3-4

Dependencies

Design Document

See docs/plans/2025-11-03-prismic-to-nuxt-content-migration-design.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions