mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This commit creates a new Webpack `TelemetryPlugin` to gather information about usage of certain features, for example `next/image` and `next/script`.
14 lines
289 B
JavaScript
14 lines
289 B
JavaScript
import Script from 'next/script'
|
|
import dynamic from 'next/dynamic'
|
|
|
|
const DynamicComponent = dynamic(() => import('./about'))
|
|
|
|
export default function Home() {
|
|
return (
|
|
<>
|
|
<Script src="https://www.google-analytics.com/analytics.js" />
|
|
<DynamicComponent />
|
|
</>
|
|
)
|
|
}
|