fix: partytown base path (#5425)
* fix: partytown base path * add changeset
This commit is contained in:
parent
936c1e411d
commit
4266869f4f
2 changed files with 6 additions and 1 deletions
5
.changeset/popular-melons-pretend.md
Normal file
5
.changeset/popular-melons-pretend.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/partytown': patch
|
||||
---
|
||||
|
||||
fix partytown when base path specified
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue