Actually fix policy.worker import (hack)

This commit is contained in:
Alex Gleason 2025-02-26 18:19:30 -06:00
parent 55115d3592
commit 92da5e6ac3
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 3 additions and 2 deletions

View file

@ -0,0 +1,2 @@
// @ts-ignore Don't try to access the env from this worker.
Deno.env = new Map<string, string>();

View file

@ -1,5 +1,4 @@
// @ts-ignore Don't try to access the env from this worker. import './deno-env.ts'; // HACK should be removed when `@/config.ts` is removed.
Deno.env = new Map<string, string>();
import { DittoPolyPg } from '@ditto/db'; import { DittoPolyPg } from '@ditto/db';
import '@soapbox/safe-fetch/load'; import '@soapbox/safe-fetch/load';