• Blog
  • Documentation
  • Courses
  • Changelog
  • AI Starters
  • UI Kit
  • FAQ
  • Supamode
    New
  • Pricing

Launch your next SaaS in record time with Makerkit, a React SaaS Boilerplate for Next.js and Supabase.

Makerkit is a product of Makerkit Pte Ltd (registered in the Republic of Singapore)Company Registration No: 202407149CFor support or inquiries, please contact us

About
  • FAQ
  • Contact
  • Verify your Discord
  • Consultation
  • Open Source
  • Become an Affiliate
Product
  • Documentation
  • Blog
  • Changelog
  • UI Blocks
  • Figma UI Kit
  • AI SaaS Starters
License
  • Activate License
  • Upgrade License
  • Invite Member
Legal
  • Terms of License
    • Environment Variables
    • Application Configuration
    • Authentication Configuration
    • Paths Configuration
    • Feature Flags
    • Account Navigation Configuration
    • Team Account Navigation Configuration

Setting the personal account navigation configuration | Remix Supabase SaaS Kit

Learn how to setup the personal account navigation of your Remix Supabase application

The personal account navigation is set at apps/web/config/personal-account-navigation.config.tsx. We use this configuration to define the navigation menu of the personal account. By default, it has three routes: home page, settings, and billing (if enabled).

We define it in one place so we can build different views at once (for example, the mobile menu).

Please update this file to add more routes to the sidebar.

apps/web/config/personal-account-navigation.config.tsx
const routes = [
{
label: 'common:homeTabLabel',
path: pathsConfig.app.home,
Icon: <Home className={iconClasses} />,
end: true,
},
{
label: 'account:accountTabLabel',
path: pathsConfig.app.personalAccountSettings,
Icon: <User className={iconClasses} />,
},
];
if (featureFlagsConfig.enablePersonalAccountBilling) {
routes.push({
label: 'common:billingTabLabel',
path: pathsConfig.app.personalAccountBilling,
Icon: <CreditCard className={iconClasses} />,
});
}
export const personalAccountSidebarConfig = SidebarConfigSchema.parse({
routes,
style: import.meta.env.VITE_USER_NAVIGATION_STYLE,
});

You can choose the style of the navigation by setting the VITE_USER_NAVIGATION_STYLE environment variable. The default style is sidebar.

bash
VITE_USER_NAVIGATION_STYLE=sidebar

Alternatively, you can set the style to header:

bash
VITE_TEAM_NAVIGATION_STYLE=header