rsnext/packages/next/server
JJ Kasper 039735350c
Add proper error when failing to load next.config.js (#28099)
This adds a proper error when we fail to load a user's `next.config.js` as the default node error can be confusing on its own and makes it seem like something failed internally in Next.js. We can expand on the included error doc added and potentially also add better syntax errors by parsing with acorn when we fail to load this file in the future. 

<details>

<summary>screenshot</summary>

<img width="962" alt="Screen Shot 2021-08-13 at 21 46 09" src="https://user-images.githubusercontent.com/22380829/129432211-6d858062-eea0-4bb9-8725-5bde98bdc47b.png">

</details>
2021-08-14 13:52:18 +00:00
..
dev Add next.config.js option to override default keepAlive (#27709) 2021-08-03 00:38:42 +00:00
lib Workaround for Node.js 16+ on Apple Silicon M1 (#27031) 2021-07-12 17:05:41 +00:00
api-utils.ts Refactor i18n checks on request handling (#27328) 2021-07-21 16:12:33 +00:00
config-shared.ts Fix generateBuildId type that can be async function (#28040) 2021-08-12 22:26:44 +00:00
config-utils-worker.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
config-utils.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
config.ts Add proper error when failing to load next.config.js (#28099) 2021-08-14 13:52:18 +00:00
crypto-utils.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
denormalize-page-path.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
font-utils.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
get-page-files.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
get-route-from-entrypoint.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
htmlescape.ts Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
image-config.ts Add minimumCacheTTL config for Image Optimization (#27200) 2021-07-15 19:55:12 +00:00
image-optimizer.ts Fix image optimization encoding url (#28045) 2021-08-13 00:31:51 +00:00
incremental-cache.ts Fix revalidate for initial notFound: true paths (#28097) 2021-08-14 13:11:40 +00:00
load-components.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
next-server.ts Fix image optimization encoding url (#28045) 2021-08-13 00:31:51 +00:00
next.ts Use SWC to compile Next.js core server files (#27167) 2021-07-14 18:12:04 +00:00
node-polyfill-fetch.js Add next.config.js option to override default keepAlive (#27709) 2021-08-03 00:38:42 +00:00
normalize-page-path.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
optimize-amp.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
render.tsx Fix revalidate for initial notFound: true paths (#28097) 2021-08-14 13:11:40 +00:00
require.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
response-cache.ts Add RenderResult (#27319) 2021-07-27 19:18:21 +00:00
router.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
send-payload.ts Add RenderResult (#27319) 2021-07-27 19:18:21 +00:00
serve-static.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
utils.ts Add support for dynamic HTML (#28085) 2021-08-13 19:57:04 +00:00