mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	chore: remove console.log and reuse package scripts (#10025)
Make `start:dev` re-use `dev:backend`, the only difference is start:dev runs a clean before running
This commit is contained in:
		
							parent
							
								
									9fca29f254
								
							
						
					
					
						commit
						27781fea47
					
				| @ -46,7 +46,7 @@ | ||||
|     "dev:frontend:cloud": "UNLEASH_BASE_PATH=/demo/ yarn run dev:frontend", | ||||
|     "dev": "concurrently \"yarn:dev:backend\" \"yarn:dev:frontend\"", | ||||
|     "prepare:backend": "concurrently \"yarn:copy-templates\" \"yarn:build:backend\"", | ||||
|     "start:dev": "yarn run clean && TZ=UTC NODE_ENV=development tsc-watch --onSuccess \"node dist/server-dev.js\"", | ||||
|     "start:dev": "yarn run clean && yarn dev:backend", | ||||
|     "db-migrate": "db-migrate --migrations-dir ./src/migrations", | ||||
|     "lint": "biome check .", | ||||
|     "lint:fix": "biome check . --write", | ||||
|  | ||||
| @ -94,7 +94,7 @@ export default class TeamsAddon extends Addon { | ||||
|             headers: { 'Content-Type': 'application/json', ...extraHeaders }, | ||||
|             body: JSON.stringify(body), | ||||
|         }; | ||||
|         console.log(`${url} Request options: ${JSON.stringify(requestOpts)}`); | ||||
| 
 | ||||
|         const res = await this.fetchRetry(url, requestOpts); | ||||
| 
 | ||||
|         this.logger.info(`Handled event "${event.type}".`); | ||||
|  | ||||
| @ -180,8 +180,6 @@ export default class ClientMetricsController extends Controller { | ||||
|             try { | ||||
|                 const { body } = req; | ||||
| 
 | ||||
|                 console.log(body); | ||||
| 
 | ||||
|                 // Use Joi validation for custom metrics
 | ||||
|                 await customMetricsSchema.validateAsync(body); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user