Fix experimental native embedding and remove VITE_APP_URL #167
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I changed the way the server url is passed to the classic form script. Before it was necessary that the server url is available on build time. Due to some changes this haven't been the case for a longer period at all.
Since self-hosted instances have different urls, the server url needs to be somehow passed to the script. This is now done in two ways:
I also added a new middleware for some routes which were previously unprotected if a form was unpublished.
Also the embedded form show now a 404 state instead of an error, when the form is not fetchable.