0.0.45 • Published 8 months ago
rnext-server v0.0.45
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
- Next.js App:
Requirements
- Node.js
- Express
- Next.js
0.0.45
8 months ago
0.0.44
8 months ago
0.0.43
8 months ago
0.0.42
8 months ago
0.0.41
8 months ago
0.0.40
8 months ago
0.0.39
8 months ago
0.0.38
8 months ago
0.0.37
8 months ago
0.0.36
8 months ago
0.0.35
8 months ago
0.0.34
8 months ago
0.0.33
8 months ago
0.0.32
8 months ago
0.0.31
8 months ago
0.0.30
8 months ago
0.0.29
8 months ago
0.0.28
8 months ago
0.0.27
8 months ago
0.0.26
8 months ago
0.0.25
8 months ago
0.0.24
8 months ago
0.0.23
8 months ago
0.0.22
8 months ago
0.0.21
8 months ago
0.0.20
8 months ago
0.0.19
8 months ago
0.0.18
8 months ago
0.0.17
8 months ago
0.0.16
8 months ago
0.0.15
8 months ago
0.0.14
8 months ago
0.0.13
8 months ago
0.0.12
8 months ago
0.0.11
8 months ago
0.0.10
8 months ago
0.0.6
8 months ago
0.0.5
8 months ago
0.0.4
8 months ago
0.0.3
8 months ago
0.0.2
8 months ago
0.0.1
8 months ago