nextjks using window or document object code example Example: nextjks using window or document object if (process.browser) { // Client-side-only code }