From 0a7bf0b581d699c85accadf20bb708b36389e25e Mon Sep 17 00:00:00 2001 From: Eric Lay Date: Wed, 11 Mar 2026 08:35:04 -0500 Subject: [PATCH] Add src/pages.config.cs --- src/pages.config.cs | 68 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 src/pages.config.cs diff --git a/src/pages.config.cs b/src/pages.config.cs new file mode 100644 index 0000000..9413a70 --- /dev/null +++ b/src/pages.config.cs @@ -0,0 +1,68 @@ +/** + * pages.config.js - Page routing configuration + * + * This file is AUTO-GENERATED. Do not add imports or modify PAGES manually. + * Pages are auto-registered when you create files in the ./pages/ folder. + * + * THE ONLY EDITABLE VALUE: mainPage + * This controls which page is the landing page (shown when users visit the app). + * + * Example file structure: + * + * import HomePage from './pages/HomePage'; + * import Dashboard from './pages/Dashboard'; + * import Settings from './pages/Settings'; + * + * export const PAGES = { + * "HomePage": HomePage, + * "Dashboard": Dashboard, + * "Settings": Settings, + * } + * + * export const pagesConfig = { + * mainPage: "HomePage", + * Pages: PAGES, + * }; + * + * Example with Layout (wraps all pages): + * + * import Home from './pages/Home'; + * import Settings from './pages/Settings'; + * import __Layout from './Layout.jsx'; + * + * export const PAGES = { + * "Home": Home, + * "Settings": Settings, + * } + * + * export const pagesConfig = { + * mainPage: "Home", + * Pages: PAGES, + * Layout: __Layout, + * }; + * + * To change the main page from HomePage to Dashboard, use find_replace: + * Old: mainPage: "HomePage", + * New: mainPage: "Dashboard", + * + * The mainPage value must match a key in the PAGES object exactly. + */ +import Activate from './pages/Activate'; +import Dashboard from './pages/Dashboard'; +import MyProfile from './pages/MyProfile'; +import Onboarding from './pages/Onboarding'; +import StripeConnect from './pages/StripeConnect'; + + +export const PAGES = { + "Activate": Activate, + "Dashboard": Dashboard, + "MyProfile": MyProfile, + "Onboarding": Onboarding, + "StripeConnect": StripeConnect, +} + +export const pagesConfig = { + mainPage: "Onboarding", + Pages: PAGES, +}; \ No newline at end of file