Description
The following LoC is causing an error in the wrangler action and local wrangler running the preview command.
|
globalThis[ID] = globalThis[ID] || { |
|
sheet: !!document.adoptedStyleSheets |
|
}; |
Expected behavior
Atomico + Astro + Cloudflare worker integration should work without any issue from build to deployment.
Actual behavior
Atomico + Astro + Cloudflare worker integration fails at the deployment step with the following error from wrangler:
✘ [ERROR] service core:user:test-astro-ts: Uncaught ReferenceError: document is not defined
at null.<anonymous> (oi1s013v6f.js:8200:12)
Reduced test case
git clone this repo to test with local wrangler.
Description
The following LoC is causing an error in the
wrangleraction and localwranglerrunning the preview command.atomico/src/options.js
Lines 5 to 7 in 02ee332
Expected behavior
Atomico + Astro + Cloudflare worker integration should work without any issue from build to deployment.
Actual behavior
Atomico + Astro + Cloudflare worker integration fails at the deployment step with the following error from
wrangler:✘ [ERROR] service core:user:test-astro-ts: Uncaught ReferenceError: document is not defined at null.<anonymous> (oi1s013v6f.js:8200:12)Reduced test case
git clonethis repo to test with localwrangler.