a year ago
I have deployed a NextJS app. It builds and deploys without issue. I have applied a custom domain to it with Cloudflare.
Sometimes the site loads and sometimes it doesn't. There are no changes to infra during this time. I experience the same behavior whether I use my custom domain or the railway assigned url.
It seems to happen whenever I haven't visited the url in a few hours. It almost seems like there is a cold start happening.
Any way to debug/fix?
12 Replies
a year ago
what service?
a year ago
nvm, neither the api or appsloth service have app sleep enabled, so we wouldn't never shut your app down, any code-boot type behavior would be from your application itself
a year ago
i would have to recommend you implement tracing so that you can find out where the snowness comes from
a year ago
all is good from our side and at a platform prospective
a year ago
they are doing something to monkeypatch away whatever issue you may be running into with your code, on Railway we only run your code as-is
a year ago
i wish you the best of luck as you debug this!