updated astro, made it closer to the default setup#73
Conversation
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
✅ BUILD PASSED - All security checks passed |
There was a problem hiding this comment.
Pull request overview
This PR updates the Astro kickstart to align with Astro’s default static output and shifts Contentstack Live Preview to client-side (CSR) re-rendering, while centralizing the homepage markup into a shared renderer used both at build time and during preview updates.
Changes:
- Switch from server output/Node adapter to Astro’s default static output.
- Refactor the homepage to render via a shared HTML-string renderer (
pageHtml) and re-render client-side on live preview entry changes. - Add preview-session param synchronization to support Timeline (
preview_timestamp,release_id) across client-side refetches.
Reviewed changes
Copilot reviewed 7 out of 10 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| tsconfig.json | Align TypeScript config with Astro defaults (include/exclude). |
| src/pages/index.astro | Use shared renderer for build-time HTML and hook up CSR live-preview re-rendering. |
| src/lib/renderPage.ts | Introduce single-source HTML renderer + DOM re-render helper for preview updates. |
| src/lib/contentstack.ts | Add preview enable flag, CSR live preview init, entry-change hook, and Timeline param sync. |
| src/env.d.ts | Remove reference file (now handled via tsconfig include). |
| README.md | Update documentation to describe static output + CSR live preview and Timeline behavior. |
| package.json | Bump version and update dependencies (including Astro major update) and adapter removal. |
| docs/astro.md | Add comprehensive Astro kickstart documentation and setup/usage guide. |
| astro.config.mjs | Remove server output + node adapter configuration; keep Tailwind Vite plugin. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
✅ BUILD PASSED - All security checks passed |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
✅ BUILD PASSED - All security checks passed |
2 similar comments
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
✅ BUILD PASSED - All security checks passed |
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
✅ BUILD PASSED - All security checks passed |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
✅ BUILD PASSED - All security checks passed |
No description provided.