Skip to content

Commit 4bbc4f4

Browse files
committed
fix(buddy): type dev port configuration safely
1 parent 6cbba90 commit 4bbc4f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • storage/framework/core/buddy/src/commands

storage/framework/core/buddy/src/commands/doctor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ export function doctor(buddy: CLI): void {
523523
await probe(checks, 'Dev ports', async () => {
524524
const net = await import('node:net')
525525
const { config } = await import('@stacksjs/config')
526-
const configured = ((config as { ports?: Record<string, unknown> }).ports ?? {})
526+
const configured = (config.ports ?? {}) as unknown as Record<string, number | undefined>
527527
const targets = [
528528
{ name: 'frontend', key: 'frontend', envVar: 'PORT', fallback: 3000 },
529529
{ name: 'api', key: 'api', envVar: 'PORT_API', fallback: 3008 },

0 commit comments

Comments
 (0)