Q71. How do you handle environment variables in Next.js?
Next.js has built-in support for environment variables managed through `.env` files with strict client/server boundary isolation: ### File Priority Hierarchy: 1. `.env.de...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (780 available).
Next.js has built-in support for environment variables managed through `.env` files with strict client/server boundary isolation: ### File Priority Hierarchy: 1. `.env.de...
Scope is the accessibility of variables, functions, and objects in some particular part of your code during runtime. In other words, scope determines the visibility of va...
By default, Next.js runs on **port 3000** for both the development server (`next dev`) and production server (`next start`). When you launch `npm run dev`, you can access...
A Service worker is basically a script (JavaScript file) that runs in the background, separate from a web page and provides features that don't need a web page or user in...
You can change the port used by Next.js using several straightforward approaches: ### 1. In `package.json` Scripts (Recommended): Pass the `-p` (or `--port`) flag in your...
Service worker can't access the DOM directly. But it can communicate with the pages it controls by responding to messages sent via the `postMessage` interface, and those ...
**Fast Refresh** is Next.js's hot module replacement (HMR) experience that provides near-instantaneous visual feedback when you edit React components in development. ### ...
The problem with service worker is that it gets terminated when not in use, and restarted when it's next needed, so you cannot rely on global state within a service worke...
A configuration file to customize Next.js settings. ```ts // @ts-check /** @type {import('next').NextConfig} */ const nextConfig = { /* config options here */ }; module.e...
IndexedDB is a low-level API for client-side storage of larger amounts of structured data, including files/blobs. This API uses indexes to enable high-performance searche...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.