refactor(app): updated base url to be blank if it was not docker or dev
This commit is contained in:
60
package.json
60
package.json
@@ -9,10 +9,12 @@
|
||||
"dev:app": "cd backend && tsx watch server.ts",
|
||||
"dev:db:migrate": "npx drizzle-kit push",
|
||||
"dev:db:generate": "tsc && npx drizzle-kit generate --config=drizzle.config.ts",
|
||||
"build": "npm run specCheck && npm run lint && npm run dev:db:generate && npm run dev:db:migrate && npm run build:app && rimraf dist/backend",
|
||||
"build:app": "ncc build backend/app.ts -o dist -m -s",
|
||||
"build": "npm run specCheck && npm run lint && npm run dev:db:generate && npm run dev:db:migrate && npm run build:app",
|
||||
"build:app": "tsc",
|
||||
"build:docker": "docker compose up --force-recreate --build -d",
|
||||
"lint": "tsc && biome lint",
|
||||
"start": "dotenvx run -f .env -- node dist/index.js",
|
||||
"start": "dotenvx run -f .env -- node dist/backend/server.js",
|
||||
"start:docker": "node dist/backend/server.js",
|
||||
"commit": "cz",
|
||||
"changeset": "changeset",
|
||||
"version": "changeset version",
|
||||
@@ -32,7 +34,7 @@
|
||||
"@changesets/cli": "^2.27.0",
|
||||
"@commitlint/cli": "^18.4.0",
|
||||
"@commitlint/config-conventional": "^18.4.0",
|
||||
"@scalar/express-api-reference": "^0.8.28",
|
||||
|
||||
"@swc/core": "^1.15.7",
|
||||
"@swc/jest": "^0.2.39",
|
||||
"@types/cors": "^2.8.19",
|
||||
@@ -48,38 +50,48 @@
|
||||
"@types/swagger-jsdoc": "^6.0.4",
|
||||
"@types/swagger-ui-express": "^4.1.8",
|
||||
"@vercel/ncc": "^0.38.4",
|
||||
"axios": "^1.13.2",
|
||||
"better-auth": "^1.4.9",
|
||||
|
||||
"commitizen": "^4.3.0",
|
||||
"cors": "^2.8.5",
|
||||
|
||||
"cz-conventional-changelog": "^3.3.0",
|
||||
"drizzle-kit": "^0.31.8",
|
||||
"drizzle-orm": "^0.45.1",
|
||||
"drizzle-zod": "^0.8.3",
|
||||
"express": "^5.2.1",
|
||||
"husky": "^8.0.3",
|
||||
"morgan": "^1.10.1",
|
||||
"mssql": "^12.2.0",
|
||||
"nodemailer": "^7.0.12",
|
||||
"nodemailer-express-handlebars": "^7.0.0",
|
||||
|
||||
|
||||
"npm-check-updates": "^19.1.2",
|
||||
"openapi-types": "^12.1.3",
|
||||
"pg": "^8.16.3",
|
||||
"pino": "^10.1.0",
|
||||
"pino-pretty": "^13.1.3",
|
||||
"postgres": "^3.4.7",
|
||||
"openapi-types": "^12.1.3",
|
||||
|
||||
"supertest": "^7.1.4",
|
||||
"ts-jest": "^29.4.6",
|
||||
"ts-node-dev": "^2.0.0",
|
||||
"tsx": "^4.21.0",
|
||||
"typescript": "^5.9.3",
|
||||
"vite-tsconfig-paths": "^6.0.3",
|
||||
"vitest": "^4.0.16",
|
||||
"zod": "^4.2.1"
|
||||
"vitest": "^4.0.16"
|
||||
|
||||
},
|
||||
"dependencies": {
|
||||
"@dotenvx/dotenvx": "^1.51.2",
|
||||
"multer": "^2.0.2"
|
||||
"pino": "^10.1.0",
|
||||
"pino-pretty": "^13.1.3",
|
||||
"zod": "^4.2.1",
|
||||
"pg": "^8.16.3",
|
||||
"powershell": "^2.3.3",
|
||||
"axios": "^1.13.2",
|
||||
"better-auth": "^1.4.9",
|
||||
"morgan": "^1.10.1",
|
||||
"mssql": "^12.2.0",
|
||||
"multer": "^2.0.2",
|
||||
"nodemailer": "^7.0.12",
|
||||
"nodemailer-express-handlebars": "^7.0.0",
|
||||
"postgres": "^3.4.7",
|
||||
"drizzle-kit": "^0.31.8",
|
||||
"drizzle-orm": "^0.45.1",
|
||||
"cors": "^2.8.5",
|
||||
"croner": "^9.1.0",
|
||||
"@scalar/express-api-reference": "^0.8.28",
|
||||
"drizzle-zod": "^0.8.3",
|
||||
"express": "^5.2.1",
|
||||
"husky": "^8.0.3"
|
||||
|
||||
},
|
||||
"config": {
|
||||
"commitizen": {
|
||||
|
||||
Reference in New Issue
Block a user