pearcy
pearcy
Explore posts from servers
WWasp-lang
Created by pearcy on 1/11/2024 in #đŸ™‹questions
Unable to access the Dashboard as an admin user
When I spin up a open-saas repo (https://github.com/wasp-lang/open-saas.git) everything works swimmingly except I am unable to access to the Dashboard as an admin user. -- running locally, Docker Postgres, dev env changes: // app/.env.server [email protected] // app/main.wasp isAdmin Boolean @default(true) Expected behavior: After these env changes, I signup and should have access to the Dashboard. -- there is nothing in my account in nav so enter /admin directly in the URL. If I change all the values to "false", I can get access to the Dashboard but when I go back to account or demo-app it routes me to the login screen. // app/main.wasp ``` route AdminRoute { path: "/admin", to: DashboardPage } page DashboardPage { authRequired: false, component: import Dashboard from "@client/admin/pages/DashboardPage" }
11 replies