@solidjs/start 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @solidjs/start
2
2
 
3
+ ## 2.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 91fc972: Prefix production entry scripts, stylesheets, modulepreloads, and serialized manifest paths with Vite's configured base URL.
8
+
3
9
  ## 2.0.2
4
10
 
5
11
  ### Patch Changes
@@ -10,7 +10,7 @@ export function getSsrProdManifest() {
10
10
  const viteManifestEntry = clientViteManifest[id /*import.meta.env.START_CLIENT_ENTRY*/];
11
11
  if (!viteManifestEntry)
12
12
  throw new Error(`No entry found in vite manifest for '${id}'`);
13
- return join("/", viteManifestEntry.file);
13
+ return join(import.meta.env.BASE_URL, viteManifestEntry.file);
14
14
  },
15
15
  async getAssets(id) {
16
16
  if (id.startsWith("./"))
@@ -24,7 +24,7 @@ export function getSsrProdManifest() {
24
24
  .map(id => id);
25
25
  for (const entryKey of entryKeys) {
26
26
  json[entryKey] = {
27
- output: join("/", viteManifest[entryKey].file),
27
+ output: join(import.meta.env.BASE_URL, viteManifest[entryKey].file),
28
28
  assets: await this.getAssets(entryKey),
29
29
  };
30
30
  }
@@ -41,7 +41,7 @@ function createHtmlTagsForAssets(assets) {
41
41
  .map(asset => ({
42
42
  tag: "link",
43
43
  attrs: {
44
- href: "/" + asset,
44
+ href: join(import.meta.env.BASE_URL, asset),
45
45
  key: asset,
46
46
  ...(asset.endsWith(".css") ? { rel: "stylesheet" } : { rel: "modulepreload" }),
47
47
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidjs/start",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/solidjs/solid-start.git",