Skip to content

Commit

Permalink
fix: prepend injected page scripts with /@id/ in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Aug 1, 2022
1 parent 99f20d1 commit ecc1736
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -135,7 +135,7 @@ export async function render(
});
} else if (script.stage === 'page' && isPage(filePath, astroConfig)) {
scripts.add({
props: { type: 'module', src: PAGE_SCRIPT_ID },
props: { type: 'module', src: `/@id/${PAGE_SCRIPT_ID}` },
children: '',
});
}
Expand Down

0 comments on commit ecc1736

Please sign in to comment.