Update for nextjs client, pass all remaining requests through to nextjs
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Build and Push Docker Image / build (push) Has been cancelled
Integration Test / build and test (push) Has been cancelled
Run Unit Tests / Run Unit Tests (push) Has been cancelled

This commit is contained in:
advplyr 2025-09-28 09:41:15 -05:00
parent e040396b20
commit 03da194953

View file

@ -407,8 +407,7 @@ class Server {
const nextApp = next({ dev: Logger.isDev, dir: ReactClientPath }) const nextApp = next({ dev: Logger.isDev, dir: ReactClientPath })
const handle = nextApp.getRequestHandler() const handle = nextApp.getRequestHandler()
await nextApp.prepare() await nextApp.prepare()
router.get('*', (req, res) => handle(req, res)) router.all('*', (req, res) => handle(req, res))
router.post('/internal-api/*', (req, res) => handle(req, res))
} }
const unixSocketPrefix = 'unix/' const unixSocketPrefix = 'unix/'