Skip to content

fix: serve local bundles on netlify deployments#71

Open
dhayab wants to merge 5 commits intomainfrom
fix/ci-netlify-canary-bundle
Open

fix: serve local bundles on netlify deployments#71
dhayab wants to merge 5 commits intomainfrom
fix/ci-netlify-canary-bundle

Conversation

@dhayab
Copy link
Member

@dhayab dhayab commented Mar 5, 2026

Summary

  • Netlify-deployed examples now serve locally-built bundles instead of fetching from GitHub releases
  • On Netlify (DEPLOY_PRIME_URL is set), closeBundle copies loader, runtime, and toolbar into dist/__local__/, patches the loader to use a local resolver, and creates a static resolver response with the deploy URL
  • A _redirects rewrite serves the resolver JSON for any /__resolver__/* request
  • Plain builds (npx vite build) are unchanged — HTML keeps the original GitHub release URLs
  • Dev mode is unchanged — the Vite dev server still handles everything dynamically
  • Added workspace dependencies so turbo --filter builds packages before the example

@netlify
Copy link

netlify bot commented Mar 5, 2026

Deploy Preview for algolia-experiences-react ready!

Name Link
🔨 Latest commit 7a678d7
🔍 Latest deploy log https://app.netlify.com/projects/algolia-experiences-react/deploys/69a965cdf08a270008d50b1c
😎 Deploy Preview https://deploy-preview-71--algolia-experiences-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Mar 5, 2026

Deploy Preview for algolia-experiences-js ready!

Name Link
🔨 Latest commit 7a678d7
🔍 Latest deploy log https://app.netlify.com/projects/algolia-experiences-js/deploys/69a965cde5bd930008fb75b4
😎 Deploy Preview https://deploy-preview-71--algolia-experiences-js.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dhayab dhayab requested a review from sarahdayan March 5, 2026 11:16
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