Aditya Gupta

Configuring Environment Variables in Next.js

The variables present outside of the context of a program are called environment variables. Environment variables are mainly used for storing sensitive information like API keys, database credentials, configuration settings, or other information that can’t be shown to the public. Besides these, they also help us to configure applications based on the environment (development, production,

Configuring Environment Variables in Next.js Read More »

Node.js MongoDB Query: With Sorting and Projection

Unlike MySQL, where a query can perform various operations like creating tables, inserting records, deleting records, etc, in MongoDB we have separate functions for these such as createCollection(), insertOne(), insertMany(), deleteOne(), and deleteMany(). Queries in MongoDB do not handle such tasks. So what does it do? Queries in MongoDB are used to filter the result

Node.js MongoDB Query: With Sorting and Projection Read More »

Generate Dynamic Metadata in Next.js: Metadata Object & generateMetadata Options

Generally, we use something like this to create metadata in Next.js: And it works very well, as we can see below: But if you observe the source code, you can see one other that is by default defined by Next.js by root layout: The same goes for descriptions and other tags: Having duplicate metadata tags

Generate Dynamic Metadata in Next.js: Metadata Object & generateMetadata Options Read More »

Review Your Cart
0
Add Coupon Code
Subtotal