đšī¸ Serve â
Test your application locally before deploying it to the server/cloud.
đ Serving Static Files â
đ Serve â
serve is a static file server for single-page applications, designed to be used with the Vercel platform but can be used anywhere. It is a simple and lightweight solution to serve static files from a directory.
Install serve globally:
bash
pnpm i --global serveThen serve target directory as a static file server:
bash
serve distđ PM2 â
PM2 is a daemon process manager that will help you manage and keep your application online 24/7. It is particularly useful for Node.js applications, allowing you to run your app in the background and manage it easily.
Install pm2 globally:
bash
pnpm install pm2 -gThen start your application with pm2:
bash
pm2 start dist