Rasengan Logo
Rasengan Logo
  • Docs
  • Blog
  • Showcase
Using stable versionv1.2.1
Documentation
Packages
Templates
Rasengan UI Kit
Using stable versionv1.2.1
Documentation
Packages
Templates
Rasengan UI Kit

PACKAGES

Rasengan Serve

@rasenganjs/serve is a simple utility to launch your Rasengan.js application in production mode. It serves the built application from the dist directory, ensuring a smooth and optimized deployment.

Installation

To use @rasenganjs/serve, install it as a dependency in your project:

Terminal
npm install @rasenganjs/serve

Usage

After building your application with Rasengan.js, you can start the production server using the rasengan-serve command.

Start the production server

[01]Define the serve command
Add the following command to your `package.json` file to start the production server:
package.json
{ "scripts": { "serve": "rasengan-serve ./dist" } }
[02]Run the serve command
Run the following command in your terminal:
Terminal
npm run serve

This will start a server that serves your application from the dist folder.

Options

Currently, @rasenganjs/serve provides a default configuration for serving your built project. Future updates may include additional options for customization.

Custom port

You can specify a custom port for the server by using the --p or --port option:

Terminal
npm run serve -- -p 3000

or

Terminal
pnpm run serve -p 3000

The -p option stands for port, and allow you to specify a custom port for the server by replacing the default port 4320 for production server.

Community

Join the Rasengan.js community to get support, ask questions, and share your projects:

  • GitHub Discussions – Ask questions and share ideas.
  • X (Twitter) – Stay updated with the latest news.
  • Linkedin – Follow the company page.

Let's build something amazing with Rasengan.js! 🚀

License

This package is MIT licensed.

On This Page

  • Installation
  • Usage
    • Start the production server
    • Options
  • Community
  • License

Discover Plus Ultra ✨

A stunning and well crafted Portfolio website to showcase your work in a nice way.

Rasengan Logo
Rasengan Logo

Resources

  • Docs
  • Packages
  • Blog
  • Showcase
  • Support us

Products

  • Rasengan UI
  • Rasengan Hub
  • Chidori
  • Nindo
  • Chunin

Community

  • Github
  • X (Twitter)

Subscribe to the Newsletter

Stay informed to the news about rasengan.js including new releases, events, etc...

© 2024-2026 Rasengan Labs, All rights reserved.