Not finding them locally might confuse people (e.g. https://github.com/cloudflare/next-on-pages/issues/758) and we should always strive for parity between local and prod, so ideally we should add some mocks for such values in getPlatformProxy, similarly to how Astro used to.
Notes/Questions:
the variables should naturally be only populated if the target application is a Pages one (an extra flag to signal getPlatformProxy when the target application is a Pages one, as mentioned in https://github.com/cloudflare/workers-sdk/issues/5742 could come in handy here... 🤔)
Describe the solution
getPlatformProxy
doesn't populate the Pages injected environment variables meaning that those are only available in production.Not finding them locally might confuse people (e.g. https://github.com/cloudflare/next-on-pages/issues/758) and we should always strive for parity between local and prod, so ideally we should add some mocks for such values in
getPlatformProxy
, similarly to how Astro used to.Notes/Questions:
getPlatformProxy
when the target application is a Pages one, as mentioned in https://github.com/cloudflare/workers-sdk/issues/5742 could come in handy here... 🤔)ASSETS
binding also be included?