Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG: __STATIC_CONTENT_MANIFEST is undefined or empty in local mode #1632

Closed
PolariTOON opened this issue Aug 7, 2022 · 1 comment
Closed
Labels
bug Something that isn't working miniflare Relating to Miniflare

Comments

@PolariTOON
Copy link

What version of Wrangler are you using?

2.0.24

What operating system are you using?

Linux

Describe the Bug

I have a worker that uses kv-asset-handler and reads the __STATIC_CONTENT_MANIFEST global variable to do some checks.

When previewing the project with wrangler dev, everything is fine, but with wrangler dev --local the variable appears to be undefined or an empty object depending on whether I use a service worker or a module worker.

That's what currently prevents me from using the local mode, but perhaps I'm doing it wrong.

Here is a repository to reproduce the issue: https://github.com/PolariTOON/no-static-content-manifest-in-miniflare

@PolariTOON PolariTOON added the bug Something that isn't working label Aug 7, 2022
@JacobMGEvans JacobMGEvans added the miniflare Relating to Miniflare label Aug 15, 2022
@JacobMGEvans
Copy link
Contributor

Reference: cloudflare/miniflare#233

mrbbot added a commit to cloudflare/miniflare that referenced this issue Sep 3, 2022
`__STATIC_CONTENT_MANIFEST` was previously empty to disable
edge-caching. The manifest is now populated, with values having a
magic prefix. URLs starting with this magic prefix are never cached.

Closes #326.
Closes cloudflare/workers-sdk#1632.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working miniflare Relating to Miniflare
Projects
None yet
Development

No branches or pull requests

2 participants