Hosting two Node.js apps in netlify?

I have two apps:

  1. A Node.JS app with a graphql endpoint
  2. A Next.JS app as a web app with server components that query the nodejs graphql endpoint

Running things locally, the nextjs app is querying localhost:1337 endpoint of the graphql server.
How would I set this up in Netlify?

Running a Next.js app here is fine. See

Running a Node.js app won’t work. See: