rsnext/test/production/exported-runtimes-value-validation
Sukka 25d34057d6
feat: enhance warning messages about unanalyzable config field (#38907)
x-ref: #38750
x-ref: https://github.com/vercel/next.js/pull/38750#discussion_r926203439

cc @ijjk 

The PR implements the details about un-extractable fields in the `UnsupportedValueError`.

The PR also enhances the warning message about the unrecognizable `config` field. Now the warning message will look like this:

```
warn  - Next.js can't recognize the exported `config` field in route "/unsupported-value-type":
Unsupported node type "CallExpression" at "config.runtime".
The default config will be used instead.
Read More - https://nextjs.org/docs/messages/invalid-page-config
```

The corresponding production test case has also been updated.
2022-07-22 19:31:47 +00:00
..
invalid-runtime/app/pages fix(#38743): config.runtime support template literal (#38750) 2022-07-21 19:56:52 +00:00
unsupported-syntax/app/pages feat: enhance warning messages about unanalyzable config field (#38907) 2022-07-22 19:31:47 +00:00
index.test.ts feat: enhance warning messages about unanalyzable config field (#38907) 2022-07-22 19:31:47 +00:00