Configuring your domain for Formbricks.
WEBAPP_URL
: The base URL of your Formbricks instance (serves both admin and public content)NEXTAUTH_URL
: The authentication URL (should be the same as WEBAPP_URL)admin.company.com
for management, surveys.company.com
for public surveys)WEBAPP_URL
PUBLIC_URL
/s/{surveyId}
- Individual survey access/c/{jwt}
- Personalized link survey access (JWT-based access)/api/v1/client/{environmentId}/*
- Client API endpoints (v1)/api/v2/client/{environmentId}/*
- Client API endpoints (v2)/favicon.ico
- Favicon/_next/*
- Next.js static assets and build files/js/*
- JavaScript files/css/*
- CSS stylesheets/images/*
- Image assets/fonts/*
- Font files/icons/*
- Icon assets/public/*
- Public static files/storage/{environmentId}/{accessType}/{fileName}
- Public file storage access/health
- Health check endpointWEBAPP_URL
) for security purposes. The admin domain can access the health endpoint (/health) and public file storage (/storage/{environmentId}/{accessType}/{fileName}
), while all other public routes are exclusively accessible on the public domain (PUBLIC_URL
) and will return a 404 error if accessed from the admin domain.
PUBLIC_URL
is not set:
WEBAPP_URL