-
Hello! Is there an official or genuine way to change port number in node server? Actually, options argument of So I can change port number in my server like below, but it seems like kind of hack.. serve(Object.assign(app, { port: 12345 })); |
Beta Was this translation helpful? Give feedback.
Answered by
yusukebe
Apr 3, 2023
Replies: 1 comment
-
Hi @gitgitWi ! Sorry for the delay. You can write like follows: serve({
fetch: app.fetch,
port: 12345,
}) Try it! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gitgitWi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @gitgitWi !
Sorry for the delay. You can write like follows:
Try it!