Skip to content

Commit

Permalink
Static build - fixes path to HMR script (#2606)
Browse files Browse the repository at this point in the history
* Static build - fixes path to HMR script

* Changeset
  • Loading branch information
matthewp committed Feb 17, 2022
1 parent 8776241 commit 96609d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cool-months-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fixes 404 to HMR script in the static build
2 changes: 1 addition & 1 deletion packages/astro/src/core/render/dev/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export async function render(renderers: Renderer[], mod: ComponentInstance, ssrO
children: '',
});
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: '',
});
}
Expand Down

0 comments on commit 96609d4

Please sign in to comment.