0.0.45 • Published 7 months ago

rnext-server v0.0.45

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

RNext Server

Overview

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

  1. Next.js Application (Primary App)
  2. 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

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

Requirements

  • Node.js
  • Express
  • Next.js
0.0.45

7 months ago

0.0.44

7 months ago

0.0.43

7 months ago

0.0.42

7 months ago

0.0.41

7 months ago

0.0.40

7 months ago

0.0.39

7 months ago

0.0.38

7 months ago

0.0.37

7 months ago

0.0.36

7 months ago

0.0.35

7 months ago

0.0.34

7 months ago

0.0.33

7 months ago

0.0.32

7 months ago

0.0.31

7 months ago

0.0.30

7 months ago

0.0.29

7 months ago

0.0.28

7 months ago

0.0.27

7 months ago

0.0.26

7 months ago

0.0.25

7 months ago

0.0.24

7 months ago

0.0.23

7 months ago

0.0.22

7 months ago

0.0.21

7 months ago

0.0.20

7 months ago

0.0.19

7 months ago

0.0.18

7 months ago

0.0.17

7 months ago

0.0.16

7 months ago

0.0.15

7 months ago

0.0.14

7 months ago

0.0.13

7 months ago

0.0.12

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago