Skip to content

Commit d3e100d

Browse files
authoredMar 18, 2025··
fix(stack): don't warn for localhost in development (#51)
1 parent 3b0458c commit d3e100d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/site-config/src/stack.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function validateSiteConfigStack(stack: SiteConfigStack) {
4040
errors.push(`url "${val}" from ${context} should not contain a hash`)
4141
else if (Object.keys(getQuery(val)).length > 0)
4242
errors.push(`url "${val}" from ${context} should not contain a query`)
43-
else if (url.host === 'localhost')
43+
else if (url.host === 'localhost' && resolved.env !== 'development')
4444
errors.push(`url "${val}" from ${context} should not be localhost`)
4545
}
4646
return errors

0 commit comments

Comments
 (0)
Please sign in to comment.