Add Biome formatter instead of Eslint#5
Conversation
| app.use( | ||
| cors({ | ||
| origin: [ | ||
| 'http://localhost:3000', |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
| cors({ | ||
| origin: [ | ||
| 'http://localhost:3000', | ||
| 'http://localhost:3001', |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
| res.status(500).json({ error: 'Failed to upload image' }); | ||
| } | ||
| // Generate the full URL for the uploaded image | ||
| // For development, use localhost:3001, for production use the actual domain |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
| } | ||
| // Generate the full URL for the uploaded image | ||
| // For development, use localhost:3001, for production use the actual domain | ||
| const baseUrl = req.get('host')?.includes('localhost') |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
| // Generate the full URL for the uploaded image | ||
| // For development, use localhost:3001, for production use the actual domain | ||
| const baseUrl = req.get('host')?.includes('localhost') | ||
| ? 'http://localhost:3001' |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
| const loadingTimeout = setTimeout(() => { | ||
| startLoadingWithProgress(1200); |
Check notice
Code scanning / devskim
If untrusted data (data from HTTP requests, user submitted files, etc.) is included in an setTimeout statement it can allow an attacker to inject their own code. Note
| vi.stubEnv('VITE_API_URL', 'http://localhost:3001') | ||
| vi.stubEnv('VITE_CLERK_PUBLISHABLE_KEY', 'test_clerk_key') | ||
| vi.stubEnv('VITE_STRIPE_PUBLISHABLE_KEY', 'test_stripe_key') | ||
| vi.stubEnv('VITE_API_URL', 'http://localhost:3001'); |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note test
| }); | ||
| try { | ||
| const response = await fetch( | ||
| 'http://localhost:3001/api/messages/broadcast', |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
| userId: '3d55c6be-e9c0-490b-a4ba-daf4134445c1', | ||
| shuttle: false, | ||
| meals: false, | ||
| imageUrl: 'http://localhost:3001/images/jobs/test-image.png', |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note test
| host: '0.0.0.0', | ||
| proxy: { | ||
| '/api': { | ||
| target: 'http://localhost:3001', |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
No description provided.