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.
npm install -D vite-plugin-zero-downtime// vite.config.js
import { defineConfig } from "vite";
import zeroDowntime from "vite-plugin-zero-downtime";
export default defineConfig({
plugins: [
// ...
zeroDowntime(),
],
});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.
MIT © HasanQQ