Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: service-worker.js should work with basePathname #4044

Merged
merged 2 commits into from
May 4, 2023

Conversation

jessezhang91
Copy link
Contributor

Overview

What is it?

  • Feature / enhancement
  • Bug
  • Docs / tests / types / typos

Description

See this bug: #4043

This PR fixes service-worker.js generation with non-root basePathname by adding the basePathname in the path when looking for the service-worker.js to prependManifestToServiceWorker.

Use cases and why

The expected behavior is the service-worker.js should intercept and cache the Qwik files properly.

Checklist:

  • My code follows the developer guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • Added new tests to cover the fix / functionality

@stackblitz
Copy link

stackblitz bot commented May 3, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@manucorporat manucorporat merged commit 744743c into QwikDev:main May 4, 2023
19 checks passed
@manucorporat
Copy link
Contributor

awesome!

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.

None yet

2 participants