ericchaves
TTypebot
•Created by ericchaves on 11/27/2024 in #help-and-questions
Does typebot runs on path other than root?
the NextAuth urls also seem to point to root, ie they redirect to
/signin
and /register
instead of ${NEXTAUTH_URL}/signin
or ${NEXTAUTH_URL}/register
. Could I be missing some configuration?6 replies
TTypebot
•Created by ericchaves on 11/27/2024 in #help-and-questions
Does typebot runs on path other than root?
Hi @Baptiste I'm using traefik to redirect to the proper service. In this environment we have a couple of web applications and typebot is one of them. I was inspecting the Signin page HTML and it seems that all src is based on the root path (
/
) and therefore it hits another service instead of typebot's service. Shouldn't those src urls be built with NEXTAUTH_URL
and NEXT_PUBLIC_VIEWER_URL
instead of just /
?6 replies
TTypebot
•Created by ericchaves on 3/16/2024 in #help-and-questions
setVariables not working on server script block. Am I doing missing something?
@moscabuilder I think I got it. I' was using
console.log
function inside the scriptBlock to trace the variable's current value during the script execution but it seems that setVariable
updates the value only after the execution ends, therefore the printed logs output still shows the initial values given me the impression that it was not working. Once I wrote a flow similar to yours and displayed the variable in a text buble I could confirm that the value is actually being updated.
- Lesson learned: if my script function relies on updated values during its execution I need to declare a local variable and use it instead.
Thanks for helping me with this issue!15 replies
TTypebot
•Created by ericchaves on 3/16/2024 in #help-and-questions
setVariables not working on server script block. Am I doing missing something?

15 replies
TTypebot
•Created by ericchaves on 3/16/2024 in #help-and-questions
setVariables not working on server script block. Am I doing missing something?

15 replies