Next.js Discord

Discord Forum

Parallel routing forcing default.js

Unanswered
Savannah posted this in #help-forum
Open in Discord
SavannahOP
Is this the easiest way to force default.js to just render the page? It seems with parallel routing you are forced to have a default.js
import Page from "./page.jsx";
export default async function defaultPage() {
  return <Page />;
}

1 Reply

SavannahOP
This is my folder structure that is causing me to need this
/app
  /chat
    [folderID]
      [chatID]
        settings
      settings
    @navBarTop
    @navBarSide
    settings

Desired routing
/chat/
/chat/settings -user settings
/chat/folderid/
/chat/folderid/settings -folder settings
/chat/folderid/chatid
/chat/folderid/chatid/settings -chat settings