We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46a0b22 commit e33d26fCopy full SHA for e33d26f
config/browsersync.config.js
@@ -5,11 +5,13 @@ const portfinder = require('portfinder')
5
let landoProjectName = 'sample'
6
7
try {
8
- let fileContents = fs.readFileSync('../../../../.lando.yml', 'utf8')
9
- let data = yaml.load(fileContents)
+ if (fs.existsSync('../../../../.lando.yml')) {
+ let fileContents = fs.readFileSync('../../../../.lando.yml', 'utf8')
10
+ let data = yaml.load(fileContents)
11
- if (data.name) {
12
- landoProjectName = data.name
+ if (data.name) {
13
+ landoProjectName = data.name
14
+ }
15
}
16
} catch (e) {
17
console.log(e)
0 commit comments