Closed f0sh closed 3 months ago
Thanks for reporting. It might be totally possible that I missed updating the configs there. Will have a look into it as soon as possible :)
Hello. I have the same issue. It would be great to be able to embed the form in a page like this!
@f0sh @anarion80 i changed the way the embed works and it it fixed now in #167
I was trying to setup the new experimental feature to natively embed a form. I implemented the script according to the input output:
At the inserted page the javscript under
https://<tld-domain>/js/classic.js
is correctly loaded however throws the following error:If I check the logs I see that in
classic.js:808
the script triggers afetch
trying to get a file fromhttp://localhost:1313/api/routes
. This is of course not possible, as this is my local hugo server for testing.Following to
classic.js:808
I see, that thelocalhost:1313
is coming from theVITE_APP_URL
variable which is not set (as I get aReferenceError: VITE_APP_URL is not defined
), so that automatically the standard value/api/routes
is taken which then points to my local environment.I have unfortunately absoluty no knowledge about TypeScript and vite.js, but according to an previous commit in the history the variable used to be
MIX_APP_URL
and there is an matching one defined in Laravel. So I have the feeling thatAPP_URL
s value is not correctly set toVITE_APP_URL
.The configuration for input has the env
APP_URL="https://<tld-domain>"
set and the setup runs fine.