← packages
nuxt-maintenance
WEEKLY RELEASEMaintenance mode for Nuxt 3/4 — runtime env toggle, allowlist, bypass token, real 503.
v0.1.0↓ 3,577/wk★ 32MIT#nuxt
README
README.md
# nuxt-maintenance
Maintenance mode for Nuxt 3/4 — runtime env toggle, allowlist, bypass token, real 503.
## Install
```bash
npm i nuxt-maintenance
```
## Usage
```ts
import { createNuxtMaintenance } from "nuxt-maintenance";
const instance = createNuxtMaintenance({
timeout: 15 * 60 * 1000,
onIdle: () => console.warn("session expiring"),
});
```
## Why
Most projects reimplement this badly, once per codebase. This does it in one
place, with tests, and stays out of your way.
- Zero dependencies
- Fully typed
- MIT licensed