mirror of
https://github.com/sasjs/server.git
synced 2026-01-03 21:10:05 +00:00
chore: few improvements
This commit is contained in:
@@ -4,7 +4,12 @@ import morgan from 'morgan'
|
||||
import dotenv from 'dotenv'
|
||||
import cors from 'cors'
|
||||
|
||||
import { connectDB, getWebBuildFolderPath, setProcessVariables } from './utils'
|
||||
import {
|
||||
connectDB,
|
||||
getWebBuildFolderPath,
|
||||
sasJSCoreMacros,
|
||||
setProcessVariables
|
||||
} from './utils'
|
||||
|
||||
dotenv.config()
|
||||
|
||||
@@ -37,6 +42,8 @@ export default setProcessVariables().then(async () => {
|
||||
const { setupRoutes } = await import('./routes/setupRoutes')
|
||||
setupRoutes(app)
|
||||
|
||||
console.log('sasJSCoreMacros', sasJSCoreMacros)
|
||||
|
||||
app.use(onError)
|
||||
|
||||
await connectDB()
|
||||
|
||||
Reference in New Issue
Block a user