diff --git a/.changeset/famous-glasses-sell.md b/.changeset/famous-glasses-sell.md new file mode 100644 index 0000000..cef3a32 --- /dev/null +++ b/.changeset/famous-glasses-sell.md @@ -0,0 +1,5 @@ +--- +'astro-vtbot': patch +--- + +Fixes content-type of chamber script diff --git a/integration/astro-inspection-chamber.js.ts b/integration/astro-inspection-chamber.js.ts index bd07b5a..f632b99 100644 --- a/integration/astro-inspection-chamber.js.ts +++ b/integration/astro-inspection-chamber.js.ts @@ -4,6 +4,12 @@ const inspectionChamber = readFileSync('node_modules/@vtbag/inspection-chamber/l export async function GET({ params, request }) { return new Response( - `if (sessionStorage.getItem('vtbot-inspection-chamber') === 'true') {${inspectionChamber}};` + `if (sessionStorage.getItem('vtbot-inspection-chamber') === 'true') {${inspectionChamber}};`, { + status: 200, + headers: { + "Content-Type": "text/javascript" + } + } + ); }