Fix dnt route

pull/1162/head
Chocobozzz 2018-10-01 13:29:38 +02:00
parent abb2c7927c
commit d1105b97ef
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 4 additions and 4 deletions

View File

@ -5,4 +5,4 @@ set -eu
rm -rf ./dist
npm run tsc
cp -r "./server/static" "./dist"
cp -r "./server/static" "./dist/server"

View File

@ -120,7 +120,7 @@ staticRouter.use('/.well-known/dnt-policy.txt',
(_, res: express.Response) => {
res.type('text/plain')
return res.sendFile(join(root(), 'server/static/dnt-policy/dnt-policy-1.0.txt'))
return res.sendFile(join(root(), 'dist/server/static/dnt-policy/dnt-policy-1.0.txt'))
}
)

View File

@ -1,5 +1,5 @@
import * as config from 'config'
import { promisify0, isProdInstance, parseDuration, isTestInstance } from '../helpers/core-utils'
import { isProdInstance, isTestInstance } from '../helpers/core-utils'
import { UserModel } from '../models/account/user'
import { ApplicationModel } from '../models/application/application'
import { OAuthClientModel } from '../models/oauth/oauth-client'
@ -7,7 +7,7 @@ import { parse } from 'url'
import { CONFIG } from './constants'
import { logger } from '../helpers/logger'
import { getServerActor } from '../helpers/utils'
import { RecentlyAddedStrategy, VideosRedundancy } from '../../shared/models/redundancy'
import { RecentlyAddedStrategy } from '../../shared/models/redundancy'
import { isArray } from '../helpers/custom-validators/misc'
import { uniq } from 'lodash'