mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Static build - fixes path to HMR script (#2606)
* Static build - fixes path to HMR script * Changeset
This commit is contained in:
parent
87762410f3
commit
96609d4c9e
2 changed files with 6 additions and 1 deletions
5
.changeset/cool-months-deliver.md
Normal file
5
.changeset/cool-months-deliver.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fixes 404 to HMR script in the static build
|
|
@ -59,7 +59,7 @@ export async function render(renderers: Renderer[], mod: ComponentInstance, ssrO
|
||||||
children: '',
|
children: '',
|
||||||
});
|
});
|
||||||
scripts.add({
|
scripts.add({
|
||||||
props: { type: 'module', src: new URL('../../runtime/client/hmr.js', import.meta.url).pathname },
|
props: { type: 'module', src: new URL('../../../runtime/client/hmr.js', import.meta.url).pathname },
|
||||||
children: '',
|
children: '',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue