The documentation on browser environment variables suggests returning them from the root loader . https://remix.run/docs/en/main/guides/envvars#browser-environment-variables
This works great for the happy path and even the unhappy path, so long as the error occurs outside of the root loader. However, if no route is matched, Remix will not run the root loader and your root error boundary won't have any access to these environment variables. Is there a way to expose client environment variables to the root Error Boundary for a route 404?