0c734543a6
## Documentation / Examples Updating the `with-msw` example to use TypeScript - [X] Make sure the linting passes by running `pnpm lint` - [X] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
9 lines
225 B
TypeScript
9 lines
225 B
TypeScript
import { AppProps } from 'next/app'
|
|
|
|
if (process.env.NEXT_PUBLIC_API_MOCKING === 'enabled') {
|
|
require('../mocks')
|
|
}
|
|
|
|
export default function App({ Component, pageProps }: AppProps) {
|
|
return <Component {...pageProps} />
|
|
}
|