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

Merge pull request #98 from sasjs/issue-91

feat: App Stream
This commit is contained in:
Muhammad Saad
2022-03-22 04:02:26 +05:00
committed by GitHub
19 changed files with 315 additions and 49 deletions

View File

@@ -8,6 +8,7 @@ import cors from 'cors'
import {
connectDB,
getWebBuildFolderPath,
loadAppStreamConfig,
sasJSCoreMacros,
setProcessVariables
} from './utils'
@@ -46,6 +47,8 @@ export default setProcessVariables().then(async () => {
const { setupRoutes } = await import('./routes/setupRoutes')
setupRoutes(app)
await loadAppStreamConfig()
// should be served after setting up web route
// index.html needs to be injected with some js script.
app.use(express.static(getWebBuildFolderPath()))