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: read q:base to get the script path for the shim #5869

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

jcfauchet
Copy link
Contributor

@jcfauchet jcfauchet commented Feb 20, 2024

Overview

The initial issue revolves around the SPA Shim Script, which fails to utilize the correct base for loading the JavaScript script when a custom base is configured in entry.ssr.ts.
After discussing with Miško, he guided me on how to make the script read the path from the q:base attribute, mirroring its behavior in dev mode.

What is it?

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

Description

The approach is to get the base path from the q:base attribute as it's done in dev mode

Checklist:

Copy link

netlify bot commented Feb 20, 2024

👷 Deploy request for qwik-insights pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 79f5625

packages/qwik-city/runtime/src/spa-shim.ts Outdated Show resolved Hide resolved
packages/qwik-city/runtime/src/spa-shim.ts Outdated Show resolved Hide resolved
@mhevery mhevery changed the title fix: read q:base to get the script path fix: read q:base to get the script path for the shim Feb 20, 2024
@jcfauchet jcfauchet marked this pull request as ready for review February 21, 2024 10:29
@mhevery mhevery merged commit 2b136c5 into QwikDev:main Feb 21, 2024
25 checks passed
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