nx icon indicating copy to clipboard operation
nx copied to clipboard

Improve `@nrwl/next:server` `customServerPath` docs

Open andre-matulionis-ifood opened this issue 3 years ago • 4 comments

This adds more details on what is the customServerPath option, and how to use it.

Some of my problems were:

  1. I created a server.js, that did not export a function, instead, it was a file that was run: node server.js. It showed an error that "customServer is not a function"
  2. I changed server.js to export a default function. Now it did run, but it still didn't work as expected
  3. I noticed a specific comment in an specific issue that showed what was the function signature, and an example on how to use it, which fixed all errors

Because the issue has a public solution but it is not documented, I added it to the documentation

andre-matulionis-ifood avatar Jun 01 '22 19:06 andre-matulionis-ifood

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 9ce85a3a0473b7812c5c6818dc185772768b6c8d. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

nx-cloud[bot] avatar Jun 01 '22 19:06 nx-cloud[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
nx-dev ⬜️ Ignored (Inspect) Dec 19, 2022 at 2:16PM (UTC)

vercel[bot] avatar Jun 01 '22 19:06 vercel[bot]

great

joaowillamy avatar Jun 01 '22 19:06 joaowillamy

Hey! Thanks for contributing can you rebase your branch with the latest master?

ndcunningham avatar Jun 10 '22 15:06 ndcunningham

Can you rebase again please

ndcunningham avatar Aug 19 '22 14:08 ndcunningham

Deprecated the feature.

jaysoo avatar Dec 19 '22 14:12 jaysoo

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

github-actions[bot] avatar Mar 16 '23 16:03 github-actions[bot]