diff --git a/packages/astro/src/core/render/dev/index.ts b/packages/astro/src/core/render/dev/index.ts index ff130d64493d0..5146f04e42304 100644 --- a/packages/astro/src/core/render/dev/index.ts +++ b/packages/astro/src/core/render/dev/index.ts @@ -116,7 +116,7 @@ export async function render( scripts.add({ props: { type: 'module', - src: '/@id/astro/runtime/client/hmr.js', + src: new URL('../../../runtime/client/hmr.js', import.meta.url).pathname, }, children: '', });