Skip to content

Commit

Permalink
Fix runtime error when installing with pnpm (#201)
Browse files Browse the repository at this point in the history
* use `raw` import for `inspectionChamber` endpoint

* chore: add changeset

* Update integration/astro-inspection-chamber.js.ts

---------

Co-authored-by: Martin Trapp <[email protected]>
  • Loading branch information
Trombach and martrapp authored Oct 8, 2024
1 parent cb58e59 commit 3cca5c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/six-spiders-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro-vtbot': patch
---

fixes `inspectionChamber` endpoint runtime error when using `pnpm`
5 changes: 2 additions & 3 deletions integration/astro-inspection-chamber.js.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { readFileSync } from 'node:fs';

const inspectionChamber = readFileSync('node_modules/@vtbag/inspection-chamber/lib/index.js');
import "astro/client";
import inspectionChamber from "@vtbag/inspection-chamber?raw";

export async function GET({ params, request }) {
return new Response(
Expand Down

0 comments on commit 3cca5c8

Please sign in to comment.