New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

rnext-server

Package Overview
Dependencies
Maintainers
0
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rnext-server

A server for running Next.js and Vite applications together

latest
Source
npmnpm
Version
0.0.45
Version published
Maintainers
0
Created
Source

RNext Server

Overview

RNext Server is an Express-based server that serves two different applications:

  • Next.js Application (Primary App)
  • Standalone React App (CMS/Admin Panel under /rnext-admin route)

The server handles both applications seamlessly, ensuring proper routing and static file serving for the standalone React app.

Features

  • Primary App: Serves the Next.js app for all routes except /rnext-admin.
  • CMS/Admin Panel: Serves the standalone React app (built with Vite) under /rnext-admin and its assets (CSS, JS, images, etc.).
  • Static File Handling: Efficiently serves static files like index.html, vite.svg, and assets for the React app.

File Structure

dist/
├── index.js         # RNext Server entry point
└── cms-build/       # Standalone React app build
    ├── index.html
    ├── assets/
    │   ├── *.js
    │   └── *.css
    └── vite.svg

Usage

  • Build your standalone React app and place the output in cms-build.
  • Start the server:
    node dist/index.js
    
  • Access the applications:
    • Next.js App: http://localhost:3000
    • CMS/Admin Panel: http://localhost:3000/rnext-admin

Requirements

  • Node.js
  • Express
  • Next.js

Keywords

next.js

FAQs

Package last updated on 09 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts