Skip to content

A Vite plugin to enable zero downtime deployments.

License

Notifications You must be signed in to change notification settings

HasanQQ/vite-plugin-zero-downtime

Repository files navigation

vite-plugin-zero-downtime

NPM Version NPM Downloads License

A Vite plugin for zero downtime deployments.

This plugin implements the classic symlink approach to enable seamless application updates without service interruption. It manages the deployment process by creating versioned builds and updating symlinks atomically, allowing the previous version to remain active until the new version is fully ready.

Installation

npm install -D vite-plugin-zero-downtime

Usage

// vite.config.js
import { defineConfig } from "vite";
import zeroDowntime from "vite-plugin-zero-downtime";

export default defineConfig({
    plugins: [
        // ...
        zeroDowntime(),
    ],
});

Configuration

  • currentDir: The directory path where the current/active application version is located (symlink).
  • releaseDir: The directory path prefix where the new release version will be deployed.

License

MIT © HasanQQ

About

A Vite plugin to enable zero downtime deployments.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •