diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 46d25ca..cd1450a 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -42,7 +42,9 @@ jobs: - name: build env: BASE_PATH: "/${{ github.event.repository.name }}" + LIZZY_API_TOKEN: ${{ secrets.LIZZY_API_TOKEN }} run: pnpm build + - name: Upload Artifacts uses: actions/upload-pages-artifact@v3 with: diff --git a/src/lib/server/lizzy.ts b/src/lib/server/lizzy.ts index ea9f929..7454797 100644 --- a/src/lib/server/lizzy.ts +++ b/src/lib/server/lizzy.ts @@ -77,7 +77,7 @@ async function fetchLizzy(path: string, init?: RequestInit) { if (!response.ok) { const body = await response.text(); - throw new Error("Failed to fetch Lizzy: " + body, { cause: response }); + throw new Error("Failed to fetch Lizzy: " + body, { cause: { ...response } }); } return response; }