Hosting nextjs app on railway
cloudycotton
PROOP

a year ago

One of the strangest bug I've seen - updated logs on the railway (showing new data) but on the frontend side, the pages return old data. No updates. Nothing. I restarted the app, it still shows new data in the logs but not on the frontend.

I looked into caching and other possibilities but that doesn't seem to be the cause.

f2d5a567-1e89-46fb-9db9-af0e0ce9e14b/service/7a33521f-7140-4e47-ab50-70bce1aa636e

10 Replies

cloudycotton
PROOP

a year ago

It works locally somehow or in the logs.


cloudycotton
PROOP

a year ago

so I don't think it is a nextjs caching issue or cloudflare proxy issue or something else. I tried to filter down each.


cloudycotton
PROOP

a year ago

Has anyone else noticed something similar with hosting nextjs?


cloudycotton
PROOP

a year ago

deleted the app, created new one. Fixed the problem


cloudycotton
PROOP

a year ago

very strange


a year ago

I don't think this is an issue related to railway


a year ago

Glad you could solve it.


cloudycotton
PROOP

a year ago

I think it may be. Strangely, nothing else in my stack caused the problem. Deleting and recreating fixed the issue on railway for the second app.


cloudycotton
PROOP

a year ago

I will try to debug later if it happens again.


a year ago

potentially build cache


Loading...