inertia-laravel
inertia-laravel copied to clipboard
Add environment variables for SSR enabled and url options
Summary
- Wrap the config values for
inertia.ssr.enabledandinertia.ssr.urlwith environment variables:INERTIA_SSR_ENABLED, with default value oftrueINERTIA_SSR_URL, with default value ofhttp://127.0.0.1:13714
Why?
As it would be nice to be able to configure these values out of the box based on environment variables (for example when running in Docker or Kubernetes), this makes it so people don't have to publish the configuration to edit these values. Nor does it require file system changes, cause ideally all external dependencies of an app should be able to be configured through environment.