Skip to content

fix: serve local bundles on netlify deployments#71

Merged
dhayab merged 5 commits intomainfrom
fix/ci-netlify-canary-bundle
Mar 9, 2026
Merged

fix: serve local bundles on netlify deployments#71
dhayab merged 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
Copy link
Member

@sarahdayan sarahdayan left a comment

Choose a reason for hiding this comment

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

Awesome! Let's also do it on the React example in a separate PR.

@dhayab dhayab merged commit 185aadf into main Mar 9, 2026
8 checks passed
@dhayab dhayab deleted the fix/ci-netlify-canary-bundle branch March 9, 2026 10:23
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