Skip to content

Conversation

@jbdevprimary
Copy link
Contributor

@jbdevprimary jbdevprimary commented Jan 19, 2026

Summary

Fixes two issues with the GitHub Pages staging deployment:

  1. Expo app not loading - Added experiments.baseUrl: "/thumbcode" to app.json so Expo knows it's deployed under a subdirectory
  2. Browser caching old content - Inject no-cache meta tags into HTML files during build

Changes

  • app.json: Add experiments.baseUrl: "/thumbcode" for GitHub Pages subdirectory deployment
  • .github/workflows/deploy-gh-pages.yml: Add post-build step to inject cache-control meta tags

Test Plan

  • Verify staging deployment loads the Expo app (not stuck on spinner)
  • Verify cache-busting works (fresh content on each deployment)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Enhanced the deployment workflow to automatically inject no-cache headers in staging builds, ensuring users consistently receive the latest version of the application without any unintended cached content interference
    • Added a new configurable base URL parameter to application settings, enabling improved routing capabilities and flexible resource loading configuration for enhanced application functionality

✏️ Tip: You can customize this high-level summary in your review settings.

- Add experiments.baseUrl: "/thumbcode" for GitHub Pages subdirectory
- Inject no-cache meta tags into HTML files for staging environment
- Fixes Expo app loading issue on GitHub Pages deployment

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 19, 2026

📝 Walkthrough

Walkthrough

Two configuration updates: a GitHub Actions workflow step to inject no-cache meta tags into HTML files during deployment, and a new baseUrl field added to the Expo experiments configuration.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow
.github/workflows/deploy-gh-pages.yml
Added new build step "Inject no-cache headers for staging" that runs after "Build web app" step. Uses sed to inject no-cache meta tags into all HTML files under dist and reports file count.
Application Configuration
app.json
Added new field "baseUrl": "/thumbcode" under "expo" -> "experiments" alongside existing "typedRoutes": true configuration.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A hop, a step, a config change,
No-cache tags now rearrange,
baseUrl hops to thumbcode's door,
Fresh pages load forevermore!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately describes the main changes: adding baseUrl configuration for GitHub Pages and implementing cache-disabling headers.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link

@jbdevprimary jbdevprimary merged commit 047d4e8 into main Jan 19, 2026
14 checks passed
@jbdevprimary jbdevprimary deleted the fix/staging-deployment-config branch January 19, 2026 01:41
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