chore: add cloudflare deploy script wrapper, add post-deploy smoke check, run TS helper scripts with tsx#47
Conversation
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/cloudflare-deploy.yml:
- Around line 58-61: Replace the hardcoded CLOUDFLARE_PAGES_PROJECT_NAME value
with the GitHub Variable mapping; update the workflow env entry for
CLOUDFLARE_PAGES_PROJECT_NAME to use ${{ vars.CLOUDFLARE_PAGES_PROJECT_NAME }}
so it follows the repo's env-var naming convention (match .env.example) instead
of the literal "todde-tv".
- Around line 63-73: The post-deploy-smoke-test job currently only runs the
command "vp run verify:cloudflare:smoke" in the "Verify public routes" step;
update the job to first checkout the repo, install/setup the vp CLI, and install
project dependencies before running that command. Specifically add an
actions/checkout step, a step to install or setup "vp" (or use the appropriate
setup action/binary install for vp), and a dependency install step (e.g., npm ci
/ pnpm install / yarn install matching the project) placed before the step that
runs "vp run verify:cloudflare:smoke", ensuring the "Verify public routes" step
runs in a checked-out workspace with vp available and dependencies installed.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yml
Review profile: CHILL
Plan: Pro
Run ID: f8b72e50-1752-409e-97c1-a0c674365b4e
📒 Files selected for processing (5)
.github/workflows/cloudflare-deploy.ymlpackage.jsonscripts/check-cloudflare-smoke.tsscripts/deploy-cloudflare.tsscripts/generate-redirects.ts
c9aa4ba to
ea98e38
Compare
|
Caution Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted. Error details |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/cloudflare-deploy.yml (1)
70-89: ⚡ Quick winParameterize smoke-test base URL to avoid deploy/verify drift.
The smoke check currently targets a fixed URL, while the deploy target is configurable. This can validate the wrong site if project/domain config changes.
Proposed change
- name: Verify public routes env: - BASE_URL: https://todde.tv + BASE_URL: ${{ vars.CLOUDFLARE_SMOKE_BASE_URL != '' && vars.CLOUDFLARE_SMOKE_BASE_URL || 'https://todde.tv' }} run: vp run verify:cloudflare:smoke🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/cloudflare-deploy.yml around lines 70 - 89, Replace the hardcoded BASE_URL used for the smoke check with a parameterized value derived from the workflow/deploy configuration (e.g., a workflow input, environment variable, or previous job output) so the smoke test targets the same deploy target; update the job step that sets env BASE_URL and the "vp run verify:cloudflare:smoke" invocation to consume that variable (replace the literal BASE_URL=https://todde.tv with BASE_URL from the workflow input/env/output) and document the new input/env name so deploy and verify remain in sync.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In @.github/workflows/cloudflare-deploy.yml:
- Around line 70-89: Replace the hardcoded BASE_URL used for the smoke check
with a parameterized value derived from the workflow/deploy configuration (e.g.,
a workflow input, environment variable, or previous job output) so the smoke
test targets the same deploy target; update the job step that sets env BASE_URL
and the "vp run verify:cloudflare:smoke" invocation to consume that variable
(replace the literal BASE_URL=https://todde.tv with BASE_URL from the workflow
input/env/output) and document the new input/env name so deploy and verify
remain in sync.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yml
Review profile: CHILL
Plan: Pro
Run ID: ede2a756-09e4-4ee9-9fe2-b645574db63a
📒 Files selected for processing (1)
.github/workflows/cloudflare-deploy.yml
|
Problems with CodeRabbit. I will close this PR and re-create it. |
Summary by CodeRabbit
New Features
Chores