Closed JoeWalters closed 5 months ago
I will get this fixed most likely tomorrow 1/19. I cloned repo to test on my system. With prisma we need to 'generate' the db and then migrate the schema to the db. Two separate commands to apply in the cli (in server folder):
npx prisma generate
npx prisma migrate dev (migrate deploy
is recommended for CI/CD, 'dev' should satisfy the needs of running locally)
in addition, naturally our main page AdminConsole calls a useEffect() that fetches the unifi login information. I will add error handling to the server to not crash when there are no credentials, and an automatic redirect to the /sitesettings page for the user to input the creds.