2 years 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
2 years ago
what service?
2 years 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
2 years ago
i would have to recommend you implement tracing so that you can find out where the snowness comes from
2 years ago
all is good from our side and at a platform prospective
2 years 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
2 years ago
i wish you the best of luck as you debug this!