Merge pull request #428 from lfnovo/fix/nextjs-standalone-server
fix: use standalone server for Next.js in Docker
This commit is contained in:
commit
940c56ddaf
6 changed files with 37 additions and 3 deletions
24
CHANGELOG.md
24
CHANGELOG.md
|
|
@ -5,6 +5,30 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [1.4.0] - 2026-01-14
|
||||
|
||||
### Added
|
||||
- CTA button to empty state notebook list for better onboarding (#408)
|
||||
- Offline deployment support for Docker containers (#414)
|
||||
|
||||
### Fixed
|
||||
- Large file uploads (>10MB) by upgrading to Next.js 16 (#423)
|
||||
- Orphaned uploaded files when sources are removed (#421)
|
||||
- Broken documentation links to ai-providers.md (#419)
|
||||
- ZIP support indication removed from UI (#418)
|
||||
- Duplicate Claude Code workflow runs on PRs (#417)
|
||||
- Claude Code review workflow now runs on PRs from forks (#416)
|
||||
|
||||
### Changed
|
||||
- Upgraded Next.js from 15.4.10 to 16.1.1 (#423)
|
||||
- Upgraded React from 19.1.0 to 19.2.3 (#423)
|
||||
- Renamed `middleware.ts` to `proxy.ts` for Next.js 16 compatibility (#423)
|
||||
|
||||
### Dependencies
|
||||
- next: 15.4.10 → 16.1.1
|
||||
- react: 19.1.0 → 19.2.3
|
||||
- react-dom: 19.1.0 → 19.2.3
|
||||
|
||||
## [1.2.4] - 2025-12-14
|
||||
|
||||
### Added
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ ENV VIRTUAL_ENV=/app/.venv
|
|||
COPY --from=builder /app/frontend/.next/standalone /app/frontend/
|
||||
COPY --from=builder /app/frontend/.next/static /app/frontend/.next/static
|
||||
COPY --from=builder /app/frontend/public /app/frontend/public
|
||||
COPY --from=builder /app/frontend/start-server.js /app/frontend/start-server.js
|
||||
|
||||
# Expose ports for Frontend and API
|
||||
EXPOSE 8502 5055
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start -p ${PORT:-8502}",
|
||||
"start": "node start-server.js",
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
|||
9
frontend/start-server.js
Normal file
9
frontend/start-server.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#!/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');
|
||||
|
|
@ -26,7 +26,7 @@ autostart=true
|
|||
startsecs=3
|
||||
|
||||
[program:frontend]
|
||||
command=bash -c "/app/scripts/wait-for-api.sh && npm run start"
|
||||
command=bash -c "/app/scripts/wait-for-api.sh && node server.js"
|
||||
directory=/app/frontend
|
||||
environment=NODE_ENV="production",PORT="8502"
|
||||
passenv=API_URL,NEXT_PUBLIC_API_URL,INTERNAL_API_URL
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ autostart=true
|
|||
startsecs=3
|
||||
|
||||
[program:frontend]
|
||||
command=bash -c "/app/scripts/wait-for-api.sh && npm run start"
|
||||
command=bash -c "/app/scripts/wait-for-api.sh && node server.js"
|
||||
directory=/app/frontend
|
||||
environment=NODE_ENV="production",PORT="8502"
|
||||
passenv=API_URL,NEXT_PUBLIC_API_URL,INTERNAL_API_URL
|
||||
|
|
|
|||
Loading…
Reference in a new issue