Skip to content

Commit

Permalink
fix: ACNA-1786 - serve-static hook error (#617)
Browse files Browse the repository at this point in the history
* naïve fix

* fix: ACNA-1786 - serve static hook error

Co-authored-by: Michael Goberling <Michael.Goberling@gmail.com>
  • Loading branch information
shazron and MichaelGoberling authored Nov 17, 2022
1 parent 0ea9df6 commit 59411b6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/run-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@ async function runDev (config, dataDir, options = {}, log = () => {}) {
}
}

// if there is no frontEndUrl, this is because the hook serve-static was set
// since there is no way for us to know what serve-static does (to possibly get the front-end url from it),
// we treat this effectively as there is no front end, for the vscode config generator
if (!frontEndUrl) {
devConfig.app.hasFrontend = false
}

log('setting up vscode debug configuration files...')
const vscodeConfig = vscode(devConfig)
await vscodeConfig.update({ frontEndUrl })
Expand Down

0 comments on commit 59411b6

Please sign in to comment.