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

fix: moved macros from codebase to drive

This reverts commit d2956fc641.
This commit is contained in:
Saad Jutt
2022-03-23 19:38:29 +05:00
parent 27e260e6a4
commit d27e070fc8
5 changed files with 20 additions and 4 deletions

View File

@@ -7,6 +7,7 @@ import cors from 'cors'
import {
connectDB,
copySASjsCore,
getWebBuildFolderPath,
loadAppStreamConfig,
sasJSCoreMacros,
@@ -42,6 +43,8 @@ const onError: ErrorRequestHandler = (err, req, res, next) => {
}
export default setProcessVariables().then(async () => {
await copySASjsCore()
// loading these modules after setting up variables due to
// multer's usage of process var process.driveLoc
const { setupRoutes } = await import('./routes/setupRoutes')