SolidJSS
SolidJSโ€ข10mo agoโ€ข
5 replies
quangnguyen1311

Deploy SolidStart with cluster?

I've completed development with SolidStart. Currently, I need to deploy it to my vps. So I'm wondering about performance and want to deploy solid-start application with cluster mode. I've to trying the nitro preset for node-cluster with full app.config.ts

import { defineConfig } from "@solidjs/start/config";
import tailwindcss from "@tailwindcss/vite";

export default defineConfig({
  vite: {
    plugins: [...(tailwindcss() as any)],
  },
  server: {
    prerender: {
      routes: ["/"],
    },
    preset: "node-cluster",
  },
});


It seems it work as normal when I try pnpm start
pnpm start

> store-front@ start C:\vggroup\store-front
> vinxi start

Listening on http://0.0.0.0:3000
Listening on http://0.0.0.0:3000
Listening on http://0.0.0.0:3000
Listening on http://0.0.0.0:3000
Listening on http://0.0.0.0:3000
Listening on http://0.0.0.0:3000
Listening on http://0.0.0.0:3000
Listening on http://0.0.0.0:3000
Listening on http://0.0.0.0:3000
Listening on http://0.0.0.0:3000
Listening on http://0.0.0.0:3000
Listening on http://0.0.0.0:3000


My question is do I did good practice or does solid-start can run in cluster mode for better performance?
Was this page helpful?