How to make root page in next 14 without redirection

  • In the app directory, create a file named page.js.
  • Import and render the home component (or the component from app/home2/page.js if that’s your home component).
// app/page.js

import HomePage from "./home2/page"; // Adjust this path if your home component is elsewhere

export default function Page() {
  return <HomePage />;
}

Remove  redirection if its related to root  in next.config.js file

const { i18n } = require("./next-i18next.config");

module.exports = {
  i18n,

  // async redirects() {
  //   return [
  //     {
  //       source: "/",
  //       destination: "/home",
  //       permanent: true,
  //     },
  //   ];
  // },
};