Conversation
There was a problem hiding this comment.
Pull request overview
This PR centralizes frontend site URL configuration, updates production URLs, adds production health checks, and refactors GAS runtime construction so backend config is reloaded per request.
Changes:
- Replaces hard-coded frontend canonical/CNAME/robots URLs with env-derived site URL handling.
- Adds production health-check scripts/workflows and updates deployment workflow inputs.
- Rebuilds GAS backend runtime context per request and makes
PUBLIC_SITE_URLrequired for capability links.
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
src/layouts/BaseLayout.astro |
Derives canonical URL from Astro site config. |
scripts/site-url.mjs |
Adds shared site URL normalization and artifact generation. |
scripts/run-frontend.mjs |
Requires site URL env and writes frontend artifacts after build/preview. |
scripts/check-production-health.mjs |
Adds live frontend/GAS production validation script. |
README.md |
Updates public quick-start domain. |
README.zh-TW.md |
Updates public quick-start domain in Traditional Chinese. |
public/robots.txt |
Removes static robots file in favor of generated output. |
public/CNAME |
Removes static CNAME in favor of generated output. |
package.json |
Adds production health-check npm script. |
gas/src/entrypoints.ts |
Rebuilds GAS runtime context on each entrypoint/admin call. |
gas/src/config.ts |
Removes default public site URL and errors when missing for capability links. |
docs/backend-spec.zh-TW.md |
Removes outdated backend specification document. |
astro.config.mjs |
Uses env-derived site URL for Astro config. |
.github/workflows/production-healthcheck.yml |
Adds scheduled/manual production health-check workflow. |
.github/workflows/pages.yml |
Supplies site URL to frontend build and adds post-deploy health check. |
.github/workflows/gas-cicd.yml |
Updates production deploy env validation and deploy/sync command. |
.env.prod.example |
Updates production public site URL example. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
This PR consolidates the recent ShortYou architecture work into
main.It replaces the legacy frontend with the Astro single-page flow, restructures the GAS backend into modular runtime components, and aligns deployment/configuration workflows across local and production environments.
Key changes
/,/#alias, and/#t=<token>Notes
devmain