App router with custom server? #49326
-
Can we use the app router with a custom server, like we can with pages? I'm guessing not, seeing as I can't get it to work and I don't see any mention of it in the docs. Equally I don't see any reference to it not being possible. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
It should work with latest canary. |
Beta Was this translation helpful? Give feedback.
-
Hi guys, I can't seem to get a custom Express.js server to work with the App Router. I keep getting a ECONREFUSED error. Have scoured the internet and ChatGPT to figure out the fix and am coming up empty. The example custom server on the Next.js Github repo doesn't use Express. Can you point me to an example with Express.js + App Router? |
Beta Was this translation helpful? Give feedback.
-
Hi @johnson-elugbadebo Here's my fork which updates to next 13 and uses app router: |
Beta Was this translation helpful? Give feedback.
-
One gotcha I came across: When following the example in the docs I had
where I'd actually made a mistake with one of the config options, I think |
Beta Was this translation helpful? Give feedback.
-
$ bun run --hot index.ts |
Beta Was this translation helpful? Give feedback.
It should work with latest canary.