DashForDevsDocs
DocsNewsAPI v1
dashfordevs.comSign in

© 2026 DashForDevs

DocsNewsdashfordevs.comLegalStatus
DocsGlobal DataMaintenance Mode
Introduction
Getting Started
Authentication
Products
Categories
Cart
Checkout
Blog
Reviews
Webhooks
Customers
Orders
Inventory
Shipping
Discounts
Affiliates
Email
Media & Files
Analytics & Tracking
Locations
Tax
Global Data
getGlobalData()Currency & PricingFeature FlagsMaintenance Mode
SEO
Error Handling
Geography
Finance
Automations
Page Types
Surveys
Billing & Subscriptions
Storefront Payments
SDK Reference
REST API
Storefront Architecture
Notifications
Security
Team & Permissions
Migrations & Import
Calendar & Appointments
Contact Forms
AI Bots
Dashboard API
Deployment
Changelog
Troubleshooting
Recipes
CLI & Deployment
Image Pipeline
White-label Platforms
Records Engine
Platform Modules
Platform Security
Site Keys & Client Sites
Use Cases
Operations

Maintenance Mode

Detect and handle maintenance mode on the storefront.

Updated March 29, 2026

On this page
  • Overview
  • Enabling Maintenance Mode
  • Detecting Maintenance Mode
  • Maintenance Page Example
  • Next Steps

Overview

Maintenance mode temporarily takes your storefront offline while you make updates. Visitors see a maintenance page instead of the regular store.

Enabling Maintenance Mode

Toggle maintenance mode in the dashboard under Settings → General.

Detecting Maintenance Mode

typescript
import dash from "@/lib/dash"

try {
  const data = await dash.getGlobalData()
} catch (error) {
  if (error.status === 503) {
    // Store is in maintenance mode
    // Show maintenance page
  }
}

Maintenance Page Example

typescript
export function MaintenancePage() {
  return (
    <div className="min-h-screen flex items-center justify-center">
      <div className="text-center">
        <h1 className="text-3xl font-bold">We'll Be Right Back</h1>
        <p className="mt-4 text-gray-400">
          We're making some improvements. Check back soon!
        </p>
      </div>
    </div>
  )
}

Next Steps

  • getGlobalData() — Global store settings
  • Deployment — Deploying your storefront
PreviousFeature FlagsNextProduct SEO

On this page

  • Overview
  • Enabling Maintenance Mode
  • Detecting Maintenance Mode
  • Maintenance Page Example
  • Next Steps