ericchaves
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 / ?
<script src="/__ENV.js"></script>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
<link rel="preload" href="/_next/static/css/b726bb3848fa3264.css" as="style"/>
<link rel="stylesheet" href="/_next/static/css/b726bb3848fa3264.css" data-n-g=""/>
<noscript data-n-css=""></noscript>
<script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script>
<script src="/_next/static/chunks/webpack-0edadb8dffd10eef.js" defer=""></script>
<script src="/_next/static/chunks/framework-a32fdada02556615.js" defer=""></script>
<script src="/_next/static/chunks/main-ce431f564a1b86d7.js" defer=""></script>
<script src="/_next/static/chunks/pages/_app-dd69e524bb0b6653.js" defer=""></script>
<script src="/_next/static/chunks/pages/_error-4c39e7884ce61774.js" defer=""></script>
<script src="/_next/static/Tg_u7ohHBqmkKicqPtBUx/_buildManifest.js" defer=""></script>
<script src="/_next/static/Tg_u7ohHBqmkKicqPtBUx/_ssgManifest.js" defer=""></script>
<script src="/__ENV.js"></script>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
<link rel="preload" href="/_next/static/css/b726bb3848fa3264.css" as="style"/>
<link rel="stylesheet" href="/_next/static/css/b726bb3848fa3264.css" data-n-g=""/>
<noscript data-n-css=""></noscript>
<script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script>
<script src="/_next/static/chunks/webpack-0edadb8dffd10eef.js" defer=""></script>
<script src="/_next/static/chunks/framework-a32fdada02556615.js" defer=""></script>
<script src="/_next/static/chunks/main-ce431f564a1b86d7.js" defer=""></script>
<script src="/_next/static/chunks/pages/_app-dd69e524bb0b6653.js" defer=""></script>
<script src="/_next/static/chunks/pages/_error-4c39e7884ce61774.js" defer=""></script>
<script src="/_next/static/Tg_u7ohHBqmkKicqPtBUx/_buildManifest.js" defer=""></script>
<script src="/_next/static/Tg_u7ohHBqmkKicqPtBUx/_ssgManifest.js" defer=""></script>
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?
No description
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?
No description
15 replies