Skip to content

Add support for Cluster Mode (e.g. PM2 cluster) #16

Open

Description

@Akimotorakiyu

Work with Cluster Mode or Work with pm2 Cluster Mode.

Currently doesn’t work well in Node.js cluster environments like PM2’s cluster mode (-i max). Each worker tries to start its own Vite server, causing port conflicts, duplicated transforms.

It would be great if vite-node could:

  • Detect cluster mode (cluster.isWorker)
  • Share a single transform cache or Vite server across workers
  • Avoid starting redundant dev servers in workers

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions