Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Commit 93d6333

Browse files
committed
give clear error if we can't determine dist for dev server
1 parent 977f977 commit 93d6333

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/commands/dev/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ async function startProxy(settings, addonUrls) {
7777
function startDevServer(settings, log, error) {
7878
if (settings.noCmd) {
7979
const StaticServer = require('static-dev-server')
80+
if (!settings.dist) {
81+
log(
82+
'Unable to determine public folder for the dev server.\nSetup a netlify.toml file with a [dev] section to specify your dev server settings.'
83+
)
84+
process.exit(1)
85+
}
86+
8087
const server = new StaticServer({
8188
rootPath: settings.dist,
8289
name: 'netlify-dev',

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy