Unverified Commit aa351688 authored by 루밀LuMir's avatar 루밀LuMir Committed by GitHub

docs(javascript): add module exports and experimental metadata (#71238)

## 📚Improving Documentation

Hello, I've added `module.exports` and `version: experimental` metadata.

Since the configuration uses `experimental` key, I believe it's
necessary to include `version: experimental` in the metadata.

Additionally, in other parts of the documentation, `module.exports` is
always present like the screenshot below.


![image](https://github.com/user-attachments/assets/4768bd9d-b6d8-4b4b-a74c-93c56094c9ea)
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent 5a4d1598
--- ---
title: webVitalsAttribution title: webVitalsAttribution
description: Learn how to use the webVitalsAttribution option to pinpoint the source of Web Vitals issues. description: Learn how to use the webVitalsAttribution option to pinpoint the source of Web Vitals issues.
version: experimental
--- ---
{/* The content of this doc is shared between the app and pages router. You can use the `<PagesOnly>Content</PagesOnly>` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */} {/* The content of this doc is shared between the app and pages router. You can use the `<PagesOnly>Content</PagesOnly>` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */}
...@@ -16,8 +17,10 @@ allows us to obtain more in-depth information like entries for [PerformanceEvent ...@@ -16,8 +17,10 @@ allows us to obtain more in-depth information like entries for [PerformanceEvent
Attribution is disabled by default in Next.js but can be enabled **per metric** by specifying the following in `next.config.js`. Attribution is disabled by default in Next.js but can be enabled **per metric** by specifying the following in `next.config.js`.
```js filename="next.config.js" ```js filename="next.config.js"
experimental: { module.exports = {
webVitalsAttribution: ['CLS', 'LCP'] experimental: {
webVitalsAttribution: ['CLS', 'LCP'],
},
} }
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment