inertia-laravel icon indicating copy to clipboard operation
inertia-laravel copied to clipboard

Add environment variables for SSR enabled and url options

Open bram-pkg opened this issue 1 year ago • 0 comments

Summary

  • Wrap the config values for inertia.ssr.enabled and inertia.ssr.url with environment variables:
    • INERTIA_SSR_ENABLED, with default value of true
    • INERTIA_SSR_URL, with default value of http://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.

bram-pkg avatar May 15 '24 15:05 bram-pkg