- In the
appdirectory, create a file namedpage.js. - Import and render the
homecomponent (or the component fromapp/home2/page.jsif 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,
// },
// ];
// },
};