-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
feature / enhancementNew feature or requestNew feature or requestservice workerStuff related to service workersStuff related to service workers
Milestone
Description
Describe the problem
#5663 adds new modules with environment variables. In some cases it's useful to be able to access those env vars in a service worker.
It only makes sense to expose public environment variables for obvious reasons, so $env/static/private and $env/dynamic/private are out.
$env/dynamic/public could potentially be useful, but I have no idea how it would work. I think 'service workers can only use public environment variables that are known at build time' is a reasonable restriction.
Describe the proposed solution
Expose $env/static/public to service workers.
Alternatives considered
No response
Importance
nice to have
Additional Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature / enhancementNew feature or requestNew feature or requestservice workerStuff related to service workersStuff related to service workers