Skip to content

nuxt: privacy migration#4984

Open
ZJvandeWeg wants to merge 3 commits intomainfrom
zj-nuxt-privacy-migration
Open

nuxt: privacy migration#4984
ZJvandeWeg wants to merge 3 commits intomainfrom
zj-nuxt-privacy-migration

Conversation

@ZJvandeWeg
Copy link
Copy Markdown
Member

Description

Bit like the /terms PR.

Related Issue(s)

Checklist

  • I have read the contribution guidelines
  • I have considered the performance impact of these changes
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
  • For blog PRs, an Art Request has been created (instructions)

ZJvandeWeg and others added 2 commits May 8, 2026 13:07
Same pattern as /terms: static page with no data dependencies moved to
a Nuxt route so 11ty no longer owns it.

- pages/privacy-policy.vue: full legal content with noindex meta
- legacy.ts: add /privacy-policy to NUXT_ROUTES
- nuxt.config.ts: add /privacy-policy to prerender routes
- src/privacy-policy.md: removed (Nuxt owns the route now)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Strip trailing slashes before checking NUXT_ROUTES so each migrated
page only needs one entry in the set instead of two.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 8, 2026

👷 Deploy Preview for flowforge-website processing.

Name Link
🔨 Latest commit 60ab9d0
🔍 Latest deploy log https://app.netlify.com/projects/flowforge-website/deploys/69fe48158338be00083ce1b7

Replaces the inline-HTML privacy-policy.vue with a proper content pipeline:
- Install @nuxt/content v3 and register it as a module
- content.config.ts: defines a 'pages' collection from content/*.md
- content/privacy-policy.md: source-of-truth Markdown (no HTML)
- pages/[...slug].vue: catch-all renderer; legacy middleware still gates
  which routes reach Nuxt, so 11ty routes are unaffected
- .gitignore: exclude .data/ (nuxt/content SQLite build cache)

Future content pages only need an .md file in content/ — no matching
.vue file required.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant