← Back to changelog
September 13, 2024
Custom Base Path for Self-Hosted Deployments
Marc Klingen
Deploy Langfuse behind a custom base path for more flexible self-hosting configurations.
You can now deploy Langfuse behind a custom base path (e.g. https://yourdomain.com/langfuse
) by setting the NEXT_PUBLIC_BASE_PATH
environment variable. This allows for more flexible self-hosting configurations, especially when integrating Langfuse into existing infrastructure.
To use a custom base path:
- Set the
NEXT_PUBLIC_BASE_PATH
environment variable at build time. - Build the Docker image. As this base path is inlined in static assets, you cannot use the prebuilt docker images.
See the self-hosting documentation for more details. Thanks to everyone who contributed to the discussion on this!