mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
parent
e03bac9e64
commit
d0d49051ac
@ -30,13 +30,12 @@
|
|||||||
"prestart:dev": "yarn run clean",
|
"prestart:dev": "yarn run clean",
|
||||||
"start:dev": "NODE_ENV=development tsc-watch --onSuccess \"node dist/server-dev.js\"",
|
"start:dev": "NODE_ENV=development tsc-watch --onSuccess \"node dist/server-dev.js\"",
|
||||||
"copy-templates": "copyfiles -u 1 src/mailtemplates/**/*.mustache dist/",
|
"copy-templates": "copyfiles -u 1 src/mailtemplates/**/*.mustache dist/",
|
||||||
"copy-docs": "copyfiles -u 1 websitev2/docs/api/oas/* dist",
|
|
||||||
"db-migrate": "db-migrate --migrations-dir ./src/migrations",
|
"db-migrate": "db-migrate --migrations-dir ./src/migrations",
|
||||||
"lint": "eslint ./src",
|
"lint": "eslint ./src",
|
||||||
"prebuild:watch": "yarn run clean",
|
"prebuild:watch": "yarn run clean",
|
||||||
"build:watch": "tsc -w",
|
"build:watch": "tsc -w",
|
||||||
"prebuild": "yarn run clean",
|
"prebuild": "yarn run clean",
|
||||||
"build": "yarn run copy-docs && yarn run copy-templates && tsc --pretty",
|
"build": "yarn run copy-templates && tsc --pretty",
|
||||||
"prepare": "yarn run build",
|
"prepare": "yarn run build",
|
||||||
"test": "NODE_ENV=test PORT=4243 jest",
|
"test": "NODE_ENV=test PORT=4243 jest",
|
||||||
"test:docker": "./scripts/docker-postgres.sh",
|
"test:docker": "./scripts/docker-postgres.sh",
|
||||||
|
@ -74,8 +74,7 @@ export default function getApp(
|
|||||||
app.use(baseUriPath, express.static(publicFolder, { index: false }));
|
app.use(baseUriPath, express.static(publicFolder, { index: false }));
|
||||||
|
|
||||||
if (config.enableOAS) {
|
if (config.enableOAS) {
|
||||||
const oasPath = path.resolve(__dirname, '../docs/api/oas');
|
app.use(`${baseUriPath}/oas`, express.static('docs/api/oas'));
|
||||||
app.use(`${baseUriPath}/oas`, express.static(oasPath));
|
|
||||||
}
|
}
|
||||||
switch (config.authentication.type) {
|
switch (config.authentication.type) {
|
||||||
case IAuthType.OPEN_SOURCE: {
|
case IAuthType.OPEN_SOURCE: {
|
||||||
|
Loading…
Reference in New Issue
Block a user