mirror of
https://github.com/sasjs/server.git
synced 2026-01-05 05:40:06 +00:00
feat(api-utility): create getWebBuildFolderPath utility
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import express from 'express'
|
||||
import indexRouter from './routes'
|
||||
import path from 'path'
|
||||
import { getWebBuildFolderPath } from './utils'
|
||||
const app = express()
|
||||
|
||||
app.use(express.json({ limit: '50mb' }))
|
||||
app.use('/', indexRouter)
|
||||
app.use(express.static(path.join(__dirname, '..', '..', 'web', 'build')))
|
||||
app.use(express.static(getWebBuildFolderPath()))
|
||||
|
||||
export default app
|
||||
|
||||
Reference in New Issue
Block a user