We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b0458c commit d3e100dCopy full SHA for d3e100d
packages/site-config/src/stack.ts
@@ -40,7 +40,7 @@ export function validateSiteConfigStack(stack: SiteConfigStack) {
40
errors.push(`url "${val}" from ${context} should not contain a hash`)
41
else if (Object.keys(getQuery(val)).length > 0)
42
errors.push(`url "${val}" from ${context} should not contain a query`)
43
- else if (url.host === 'localhost')
+ else if (url.host === 'localhost' && resolved.env !== 'development')
44
errors.push(`url "${val}" from ${context} should not be localhost`)
45
}
46
return errors
0 commit comments