Source Freeze

  • Home
  • iOS
  • Swift
  • Cross-Platform
  • About
  • Contact
Home » NextJS

How to disable server side rendering in nextjs

December 20, 2023 by Source Freeze Leave a Comment

When working with Next.js, controlling whether your application renders content on the server-side or client-side can significantly impact its performance and behaviour. Server-side rendering (SSR) can sometimes be unnecessary or less suitable for certain projects, and fortunately, Next.js provides ways to disable SSR when needed. In this blog, … [Continue reading...]

Filed Under: javascript, NextJS Tagged With: beginner, javascript, nextjs, web developer

How do you get the current url in Nextjs?

December 15, 2023 by Source Freeze Leave a Comment

In this blog, we will explore the topic of retrieving the current URL in Next.js, a powerful React framework. Understanding how to obtain the current URL is crucial for various web development scenarios. We'll explore the steps to achieve this and provide real life code examples to get the current url in Nextjs. Getting Started: To kick … [Continue reading...]

Filed Under: NextJS Tagged With: beginner, javascript, nextjs, web developer

How to solve Next.js window is not defined

December 11, 2023 by Source Freeze Leave a Comment

In Next.js, facing the "window is not defined" error might feel confusing. This error pops up when trying to use the window object in code that runs on the server side. Let's dig into why this happens in Next.js and how to solve for window is not defined: Understanding the Error JavaScript running on the client-side within a browser … [Continue reading...]

Filed Under: javascript, NextJS Tagged With: beginner, javascript, web developer

Next.js Warning: Extra attributes from the server

December 10, 2023 by Source Freeze Leave a Comment

This blog post will guide you through the annoying "Extra attributes from the server" warning encountered in Next.js 13 and beyond. We'll explore the causes, multiple solutions, and best practices to keep your development environment clean and free of clutter. Understanding the Warning What is the warning? The warning message … [Continue reading...]

Filed Under: javascript, NextJS Tagged With: beginner, javascript, nextjs, web developer

What does colon do in JavaScript & TypeScript?

December 6, 2023 by Source Freeze Leave a Comment

In JavaScript, the colon (:) serves multiple purposes across different contexts, primarily as a separator and a syntax element within the language. Let's dive into its key roles: Here's a list of the functionalities that a simple colon {:} provides us: 1. Using Colon in the Object Literal Syntax 2. Using Colon in the Ternary … [Continue reading...]

Filed Under: javascript, NextJS Tagged With: beginner, colon, es6, javascript, switch, ternary, typescript, web developer

How to redirect to another page in next js

January 8, 2023 by Source Freeze Leave a Comment

In this tutorial, we will see how to redirect to another page in next js, there are three ways to redirect one page to another page in nextjs. Let's see each option in a detailed way. Using Link Component in Next.JS Using Link component in nextjs it is like a href tag you can just use the href attribute and mention the redirect URL, … [Continue reading...]

Filed Under: javascript, NextJS Tagged With: javascript, nextjs

How to get the query parameters from URL in Next JS?

January 5, 2023 by Source Freeze Leave a Comment

In nextjs we can easily get the query params with the use of useRouter() that we can import from 'next/router' then assign userRouter() to the router variable after that using router.query we can get the exact query string values. if you are passing multiple queries also we can get the values from router.query. ☞ Check out Next.js & … [Continue reading...]

Filed Under: javascript, NextJS Tagged With: javascript, nextjs

Recent Posts

  • How to Generate random numbers in JavaScript
  • How to Scroll to an Element in a React Component?
  • How to get a Date without the Time in JavaScript
  • How to modify url without reloading the page using javascript
  • How to disable server side rendering in nextjs
  • How to get a file type from URL in JavaScript

Recent Posts

  • How to Generate random numbers in JavaScript
  • How to Scroll to an Element in a React Component?
  • How to get a Date without the Time in JavaScript
  • How to modify url without reloading the page using javascript
  • How to disable server side rendering in nextjs
  • How to get a file type from URL in JavaScript

Recent Comments

    Tags

    beginner colon cross-platform es6 function html ionic iOS javascript mobile application development nextjs objective-c swift switch ternary typescript uiwebview Visual Studio plugin web developer

    Copyright © 2025 Source Freeze