Default admin password fix

This commit is contained in:
AG
2025-12-06 20:38:42 +02:00
parent cd0eef9ad6
commit 66e73856f7
2 changed files with 3 additions and 10 deletions

View File

@@ -5,20 +5,13 @@ export default defineConfig({
fullyParallel: true, fullyParallel: true,
forbidOnly: !!process.env.CI, forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0, retries: process.env.CI ? 2 : 0,
workers: 1, workers: process.env.CI ? 1 : undefined,
reporter: 'html', reporter: 'html',
use: { use: {
baseURL: 'http://localhost:3000', baseURL: 'http://localhost:3000',
trace: 'on-first-retry', trace: 'on-first-retry',
launchOptions: {
headless: false
}
},
webServer: {
command: 'rm -f server/prisma/prisma/dev.db && npm run migrate:deploy --prefix server && npm run dev:full & wait-on http-get://localhost:3000',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
}, },
projects: [ projects: [
{ {
name: 'chromium', name: 'chromium',

View File

@@ -21,7 +21,7 @@ const app = express();
// ------------------------------------------------------------------- // -------------------------------------------------------------------
async function ensureAdminUser() { async function ensureAdminUser() {
const adminEmail = process.env.ADMIN_EMAIL || 'admin@gymflow.ai'; const adminEmail = process.env.ADMIN_EMAIL || 'admin@gymflow.ai';
const adminPassword = process.env.ADMIN_PASSWORD || 'admin1234'; const adminPassword = process.env.ADMIN_PASSWORD || 'admin123';
// Use the singleton prisma client // Use the singleton prisma client
const prisma = (await import('./lib/prisma')).default; const prisma = (await import('./lib/prisma')).default;