Does typebot runs on path other than root?
Hi folks, I'd like to have typebot builder and viewer running under a different path other than root.
I've tried to set NEXTAUTH_URL=https://typebot.mydomain.com/builder and NEXT_PUBLIC_VIEWER_URL=https://typebot.mydomain.com/viewer.
Should this work?
When I try to access this kind of url I'm always being redirect to root , for example to https://typebot.mydomain.com/signin instead of https://typebot.mydomain.com/builder/signin.
Am I missing something or typebot requires to run on the root folder of the domain?
4 Replies
Someone will reply to you shortly. In the meantime, this might help:
It should only work if you have a reverse proxy detecting that path and redirecting to the right resource
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 (
the NextAuth urls also seem to point to root, ie they redirect to
/
) 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 /
?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?Yeah no you are right, these variables are really meant to not have a path 🙏