Skip to content

Commit

Permalink
fix: partytown base path (#5425)
Browse files Browse the repository at this point in the history
* fix: partytown base path

* add changeset
  • Loading branch information
brenelz committed Nov 17, 2022
1 parent 936c1e4 commit 4266869
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/popular-melons-pretend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/partytown': patch
---

fix partytown when base path specified
2 changes: 1 addition & 1 deletion packages/integrations/partytown/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function createPlugin(options: PartytownOptions): AstroIntegratio
config = _config;
},
'astro:server:setup': ({ server }) => {
const lib = `${config.base}~partytown/`;
const lib = `/~partytown/`;
server.middlewares.use(
sirv(partytownLibDirectory, {
mount: lib,
Expand Down

0 comments on commit 4266869

Please sign in to comment.