Simple health check page

Hi all,

I want to add a simple healthcheck page to my site. It should only display a 200-OK json status code ({"status":"ok"}) and nothing more. I don’t want to load anything that my usual site loads, i.e. css, js, etc.

If I just add a simple under ./content/healthcheck/ The page still loads all the css etc. Is there some front matter magic I can use to accomplish this?

Thank you in advance :slight_smile:

Can you just place a one line HTML or JSON file in the static directory?

Okay! I was a little too quick to declare victory.
Adding a file to static worked locally. But in production it just fired off a file download instead of displaying the file. Maybe because I left off any file extension in order to have a prettier URL. I have a pdf under static/files/file.pdf which just opens in the browser window.

Yeah, that one.

That did it! Thank you:)

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.