posthog doesnt work in production on railway

alexstepanenkoytHOBBY

2 months ago

Hello, I've successfully set up posthog in my project, everything works locally, when I deployed my app on railway analytics stopped receiving events, environment variables already set up in production on railway but still no result

Solved

4 Replies

2 months ago

Hey!

This seems like an issue with your project / application. Unfortunately, we're unable to offer first-party support for issues unrelated to the Railway product or platform, or support for 3rd party services.

Other communities such as Stackoverflow might be able to help you out further.

Best,
Brody


Status changed to Awaiting User Response railway[bot] 2 months ago


alexstepanenkoytHOBBY

2 months ago

the issue is that my front end can't see NEXT_PUBLIC_POSTHOG_HOST environment variable


Status changed to Awaiting Railway Response railway[bot] 2 months ago


alexstepanenkoytHOBBY

2 months ago

is this railway issue?


2 months ago

Ah okay sorry, that information wasn't clear.

Not an issue with Railway, but just a general thing about Docker, please see our docs on this topic -

https://docs.railway.com/guides/dockerfiles#using-variables-at-build-time


Status changed to Awaiting User Response railway[bot] 2 months ago


Status changed to Solved brody 2 months ago