Fixing Next Js Referenceerror Document Is Not Defined Dev

Fixing Next Js Referenceerror Document Is Not Defined Dev