mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-05-05 23:37:58 +00:00
Replace cross-env with a simple Node.js wrapper script that: - Respects externally supplied PORT environment variable - Falls back to 8502 if PORT is not set - Works cross-platform without extra dependencies - No runtime dependencies beyond Node.js itself Changes: - Add start-server.js wrapper script - Update package.json to use wrapper - Remove cross-env dependency - Copy start-server.js in Dockerfile This fixes both issues: 1. Preserves PORT fallback behavior (PORT can be overridden) 2. No extra runtime dependencies needed
9 lines
197 B
JavaScript
9 lines
197 B
JavaScript
#!/usr/bin/env node
|
|
|
|
// Set default PORT if not already set
|
|
if (!process.env.PORT) {
|
|
process.env.PORT = '8502';
|
|
}
|
|
|
|
// Start the Next.js standalone server
|
|
require('./.next/standalone/server.js');
|