Skip to content

Deploy assets for reverse proxy#5

Merged
cazala merged 4 commits into
mainfrom
party-assets
Dec 30, 2025
Merged

Deploy assets for reverse proxy#5
cazala merged 4 commits into
mainfrom
party-assets

Conversation

@cazala
Copy link
Copy Markdown
Owner

@cazala cazala commented Dec 30, 2025

This pull request updates the deployment workflow and build configuration to support both root and subpath deployments of the @cazala/playground app, enabling it to be served at both party.caza.la and as a subpath at caza.la/party. The changes ensure proper asset routing, type checking, and deployment to separate Cloudflare Pages projects for each deployment target.

Deployment workflow enhancements:

  • The build step in .github/workflows/deploy.yml now performs a type check and creates two separate builds of the @cazala/playground app: one for the root path and one for the /party/ subpath, with the subpath build outputting to dist-party-assets.
  • The workflow creates a second Cloudflare Pages project, party-assets, to host the subpath build used for reverse proxying at caza.la/party.
  • The subpath build (dist-party-assets) is deployed to the new party-assets project in addition to the standard deployment.

Build and routing configuration:

  • The Vite config in packages/playground/vite.config.js now dynamically sets the base option based on the VITE_PUBLIC_BASE environment variable, normalizing it to ensure correct asset paths for both root and subpath deployments.
  • A new Netlify-style _redirects file in packages/playground/public ensures that all routes are redirected to index.html for proper SPA routing.

Note

Enables dual deployment of the playground for both root and subpath hosting, plus guidance for an edge reverse-proxy.

  • CI/Deploy: Build @cazala/playground twice (root and subpath via VITE_PUBLIC_BASE=/party/), add type-check step, safer project existence checks, and deploy both distparty and dist-party-assetsparty-assets; include --commit-dirty=true for preview/production.
  • Build config: Vite base now derived from VITE_PUBLIC_BASE with normalization to ensure correct asset paths under /party/.
  • Routing: Add _redirects for SPA fallback (/* /index.html 200).
  • Docs: New docs/edge-repo-llm-instructions-caza-la-party-worker.md describing a Cloudflare Worker that reverse-proxies caza.la/party to https://party-assets.caza.la.

Written by Cursor Bugbot for commit 12b52ef. This will update automatically on new commits. Configure here.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 30, 2025

Preview deployment ready

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on January 9

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Comment thread .github/workflows/deploy.yml
@cazala cazala merged commit 44a1f98 into main Dec 30, 2025
2 checks passed
@cazala cazala deleted the party-assets branch December 30, 2025 16:48
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.

1 participant