fix build

This commit is contained in:
2026-03-29 14:09:10 -05:00
parent 31e539102b
commit 84571c3516
3 changed files with 8 additions and 6 deletions

View File

@@ -8,7 +8,13 @@
"mcp__Claude_Preview__preview_start", "mcp__Claude_Preview__preview_start",
"Bash(curl -s http://localhost:8080/api/v1/users -H \"Authorization: Bearer test\")", "Bash(curl -s http://localhost:8080/api/v1/users -H \"Authorization: Bearer test\")",
"Bash(curl -s -X POST http://localhost:8080/api/v1/auth/login -H \"Content-Type: application/json\" -d \"{\"\"email\"\":\"\"admin@demo.com\"\",\"\"password\"\":\"\"password123\"\"}\")", "Bash(curl -s -X POST http://localhost:8080/api/v1/auth/login -H \"Content-Type: application/json\" -d \"{\"\"email\"\":\"\"admin@demo.com\"\",\"\"password\"\":\"\"password123\"\"}\")",
"Bash(curl -s \"http://localhost:8080/api/v1/users\" -H \"Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJjbW16c3JsdXowMDA0dTVqM2JldWwyMnM3IiwidmVuZG9ySWQiOiJkZW1vLXZlbmRvciIsInJvbGVJZCI6ImNtbXpzcmx0ZDAwMDB1NWozdnV6Y2QzZW0iLCJyb2xlTmFtZSI6Im93bmVyIiwiaWF0IjoxNzc0MDY2MjU4LCJleHAiOjE3NzQwNjcxNTh9.eBSLkZVXafSBE-o6A2I626EgBcxxXSKGVu7pv3yQdhU\")" "Bash(curl -s \"http://localhost:8080/api/v1/users\" -H \"Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJjbW16c3JsdXowMDA0dTVqM2JldWwyMnM3IiwidmVuZG9ySWQiOiJkZW1vLXZlbmRvciIsInJvbGVJZCI6ImNtbXpzcmx0ZDAwMDB1NWozdnV6Y2QzZW0iLCJyb2xlTmFtZSI6Im93bmVyIiwiaWF0IjoxNzc0MDY2MjU4LCJleHAiOjE3NzQwNjcxNTh9.eBSLkZVXafSBE-o6A2I626EgBcxxXSKGVu7pv3yQdhU\")",
"Bash(DATABASE_URL=\"file:./prisma/dev.db\" npx prisma migrate dev --name add_events_rename_roles)",
"Bash(DATABASE_URL=\"file:./prisma/dev.db\" npx tsx prisma/seed.ts)",
"Bash(git add:*)",
"Bash(git commit:*)",
"Bash(npx tsc:*)",
"Bash(curl -s http://localhost:8080/api/v1/health)"
] ]
} }
} }

View File

@@ -1,6 +1,6 @@
PORT=8080 PORT=8080
NODE_ENV=development NODE_ENV=development
DATABASE_URL=file:./dev.db DATABASE_URL=file:./prisma/dev.db
JWT_SECRET=change-me-in-production JWT_SECRET=change-me-in-production
LOG_LEVEL=info LOG_LEVEL=info
CORS_ORIGIN=http://localhost:5173 CORS_ORIGIN=http://localhost:5173

View File

@@ -1,7 +1,6 @@
import express from "express"; import express from "express";
import cors from "cors"; import cors from "cors";
import path from "path"; import path from "path";
import { fileURLToPath } from "url";
import healthRouter from "./routes/health.js"; import healthRouter from "./routes/health.js";
import authRouter from "./routes/auth.js"; import authRouter from "./routes/auth.js";
import vendorsRouter from "./routes/vendors.js"; import vendorsRouter from "./routes/vendors.js";
@@ -15,9 +14,6 @@ import eventsRouter from "./routes/events.js";
import { errorHandler } from "./middleware/errorHandler.js"; import { errorHandler } from "./middleware/errorHandler.js";
import { requestLogger } from "./middleware/requestLogger.js"; import { requestLogger } from "./middleware/requestLogger.js";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
export function createApp() { export function createApp() {
const app = express(); const app = express();