deck9 / input

A privacy-focused, no-code, open-source form builder designed for simplicity and brand consistency.
https://getinput.co
GNU Affero General Public License v3.0
163 stars 27 forks source link

Fix Ziggy frontend routes & allow Proxies by default #28

Closed PhilReinking closed 2 years ago

PhilReinking commented 2 years ago

The Ziggy routes file has been generated during the image build. Since it is relying on the APP_URL env, which might be set later to something different, when running the container, it failed in cases with different URL settings.

This is the first fix that pulls the route information via API endpoint from the currently running instance. In this case, we should always get the correct routes file, even if the APP_URL setting is going to change.