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:
@@ -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')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user