petitviolet blog

    remix (1 posts)

    icon
    Written by petitviolet

    Maintenance Mode on Remix w/Google Cloud Armor

    2025-07-15RemixGCPNode.js
    How to implement maintenance mode on Remix using Google Cloud Armor functionality to inject custom headers for requests from non-whitelisted IPs.
    tl;dr Use Google Cloud Armor's header_action to inject a custom header into requests from non-allowlisted IPs, so that your application can check this header in Remix's root loader and display a maintenance page if present. Background Sometimes you need to put your service into maintenance