Make Server Function logging opt-in via `logging.serverFunctions` (#89321)
Server Function logging (#88277) is now opt-in, consistent with how
fetch logging works. This reduces noise in development logs by default.
Additionally, for `'use cache'` Server Functions called from the client,
the logging needs more work to be useful. Keeping it opt-in avoids
exposing incomplete functionality by default.
Server Function logging can be enabled in `next.config.js`:
```js
module.exports = {
logging: {
serverFunctions: true,
},
}
```
Showing
Please
register
or
sign in
to comment