Q131. How do you add custom headers in Next.js?
Custom HTTP headers (such as CORS permissions, Cache-Control policies, or security headers like `Content-Security-Policy` and `X-Frame-Options`) can be configured in **`n...
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 (572 available).
Custom HTTP headers (such as CORS permissions, Cache-Control policies, or security headers like `Content-Security-Policy` and `X-Frame-Options`) can be configured in **`n...
Python uses **indentation** (typically 4 spaces according to PEP 8) rather than curly braces (`{}`) or `begin`/`end` keywords to define blocks of code such as functions, ...
To make an image clickable, we have to use anchor tag with the image tag nested inside it and specify where we want to be directed to in "href" attribute when image in cl...
Historically, **`next export`** was the CLI command used to export a Next.js application into pure static HTML/CSS/JS files that could be hosted on any static hosting pro...
Dynamic. In a statically typed language, the type of variables must be known (and usually declared) at the point at which it is used. Attempting to use it will be an err...
Strong. In a weakly typed language a compiler / interpreter will sometimes change the type of a variable. For example, in some languages (like JavaScript) you can add st...
The data=\* attribute allows us to store additional information about an HTML element that is not otherwise displayed on the page, but may be useful to scripts that inter...
By adding a custom webpack configuration in next.config.js. ```js module.exports = { webpack: ( config, { buildId, dev, isServer, defaultLoaders, webpack } ) => { // Note...
The `` tag provides semantic caption or title for a `` element. It is optional but better for better to have for accessibility.
By default, Next.js uses the high-performance Rust-based **SWC compiler**, which is up to 17x faster than Babel. However, if your project relies on legacy custom Babel pl...
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.