Skip to content

fix(privacy): escape curly braces that break Astro build#28

Merged
TeoSlayer merged 1 commit into
mainfrom
fix/privacy-astro-syntax
Jun 17, 2026
Merged

fix(privacy): escape curly braces that break Astro build#28
TeoSlayer merged 1 commit into
mainfrom
fix/privacy-astro-syntax

Conversation

@TeoSlayer

Copy link
Copy Markdown
Contributor

Problem

src/pages/privacy.astro used {"consent": {"telemetry": false}} inline in the HTML template body. Astro parses { as an expression delimiter, which caused a build failure:

Expected "}" but found ":"
Location: src/pages/privacy.astro:36:3223

Fix

Replace the three inline JSON snippets with prose equivalents:

  • set consent.telemetry to false in ~/.pilot/config.json
  • set consent.broadcasts to false in ~/.pilot/config.json
  • set consent.reviews to false in ~/.pilot/config.json

The full JSON format is documented on the linked /docs/consent page.

🤖 Generated with Claude Code

Astro treats {} as expression delimiters in template HTML. Replace
inline JSON snippets like {"consent": {"telemetry": false}} with
prose equivalents (set consent.telemetry to false in config.json)
to fix the build error: Expected "}" but found ":".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@TeoSlayer TeoSlayer merged commit 976749e into main Jun 17, 2026
1 of 2 checks passed
@github-actions

Copy link
Copy Markdown

🚀 Preview deployed to Cloudflare Pages

  • Commit deploy URL: https://dea6f100.pilotprotocol.pages.dev
  • Branch alias: https://fix/privacy-astro-syntax.pilotprotocol.pages.dev (may take ~30s to propagate)
  • Commit: 48e9682e9af6fd52d41af39b92a7bfcffe647386

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.

2 participants