Skip to content

fix: respect Vite base in production asset URLs - #2305

Merged
birkskyum merged 1 commit into
solidjs:mainfrom
birkskyum:fix/vite-base-asset-urls
Aug 20, 2026
Merged

fix: respect Vite base in production asset URLs#2305
birkskyum merged 1 commit into
solidjs:mainfrom
birkskyum:fix/vite-base-asset-urls

Conversation

@birkskyum

@birkskyum birkskyum commented Aug 20, 2026

Copy link
Copy Markdown
Member

Summary

  • prefix production entry scripts and serialized manifest outputs with Vite's configured base
  • prefix generated stylesheet and modulepreload URLs with the same base
  • preserve existing root-base behavior and add focused regression coverage

This addresses the base-path portion of #2288. Nitro's static-preset build failure was fixed separately by nitrojs/nitro#4509.

Testing

  • pnpm --filter @solidjs/start test:ci (102 tests)
  • pnpm --filter @solidjs/start build
  • reproduced a Nitro static build with base: "/foo/", baseURL: "/foo/", and nitro-nightly@3.0.1-20260820-204949-2b3f1011; the generated stylesheet, modulepreload, and entry-script URLs all use /foo/_build/...

The Nitro reproduction included the temporary direct destr dependency documented in unjs/unstorage#808.

@netlify

netlify Bot commented Aug 20, 2026

Copy link
Copy Markdown

Deploy Preview for solid-start-landing-page ready!

Name Link
🔨 Latest commit 42153ad
🔍 Latest deploy log https://app.netlify.com/projects/solid-start-landing-page/deploys/6a876e0f61470500086cd45f
😎 Deploy Preview https://deploy-preview-2305--solid-start-landing-page.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@changeset-bot

changeset-bot Bot commented Aug 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 42153ad

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@solidjs/start Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Aug 20, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@solidjs/start@2305

commit: 42153ad

@birkskyum
birkskyum marked this pull request as ready for review August 20, 2026 21:14
@birkskyum
birkskyum requested a review from brenelz August 20, 2026 21:14
@birkskyum
birkskyum merged commit 91fc972 into solidjs:main Aug 20, 2026
13 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.

SolidStart 2.0 (alpha) ignores Vite base for prerendered/SSR script and asset URLs

2 participants