_app.js
452 Bytes
import 'tailwindcss/tailwind.css'
if (process.env.NODE_ENV === 'development') {
if (typeof window === 'undefined') {
const { server } = require('../mocks/server')
server.listen()
console.log('SERVER STARTED')
} else {
const { worker } = require('../mocks/browser')
worker.start()
console.log('WORKER STARTED')
}
}
function MyApp ({ Component, pageProps }) {
return <Component {...pageProps} />
}
export default MyApp