From 0cf8b8ccd935cc65836cbe723dfa70639f21a11d Mon Sep 17 00:00:00 2001 From: Davide <43080019+edivados@users.noreply.github.com> Date: Wed, 3 Jan 2024 15:26:32 +0000 Subject: [PATCH 1/2] fix css asset href --- packages/vinxi/lib/manifest/prod-server-manifest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vinxi/lib/manifest/prod-server-manifest.js b/packages/vinxi/lib/manifest/prod-server-manifest.js index e24a5c1b..5ad9024b 100644 --- a/packages/vinxi/lib/manifest/prod-server-manifest.js +++ b/packages/vinxi/lib/manifest/prod-server-manifest.js @@ -14,7 +14,7 @@ function createHtmlTagsForAssets(router, app, assets) { .map((asset) => ({ tag: "link", attrs: { - href: joinURL(app.config.server.baseURL ?? "", router.base, asset), + href: joinURL(app.config.server.baseURL ?? "/", router.base, asset), key: join(app.config.server.baseURL ?? "", router.base, asset), ...(asset.endsWith(".css") ? { rel: "stylesheet", precendence: "high" } From 6f695e234ff3a31f1f81023095a6b7fe748f120b Mon Sep 17 00:00:00 2001 From: Nikhil Saraf Date: Thu, 4 Jan 2024 10:01:42 +0530 Subject: [PATCH 2/2] Create three-trainers-fetch.md --- .changeset/three-trainers-fetch.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/three-trainers-fetch.md diff --git a/.changeset/three-trainers-fetch.md b/.changeset/three-trainers-fetch.md new file mode 100644 index 00000000..fd1c8c3b --- /dev/null +++ b/.changeset/three-trainers-fetch.md @@ -0,0 +1,5 @@ +--- +"vinxi": patch +--- + +fix: css asset href is relative