1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-06 06:10:04 +00:00

chore: fix for development docker-compose

This commit is contained in:
Saad Jutt
2021-11-14 21:12:10 +05:00
parent 4792f15c40
commit 5e7cecf3ea
7 changed files with 14 additions and 18 deletions

View File

@@ -12,11 +12,8 @@ const codeToInject = `
</script>`
webRouter.get('/', async (_, res) => {
let indexHtmlPath: string
try {
indexHtmlPath = path.join(getWebBuildFolderPath(), 'index.html')
} catch (err) {
const indexHtmlPath = path.join(getWebBuildFolderPath(), 'index.html')
if (!(await fileExists(indexHtmlPath))) {
return res.send('Web Build is not present')
}