]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix dnt route
authorChocobozzz <me@florianbigard.com>
Mon, 1 Oct 2018 11:29:38 +0000 (13:29 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 1 Oct 2018 13:20:13 +0000 (15:20 +0200)
scripts/build/server.sh
server/controllers/static.ts
server/initializers/checker-after-init.ts

index bd4d1bf47f53d99d0a8cc079209d194ba9e446f2..8a1d4ca9a0ba94ec54a989170e475936980958c5 100755 (executable)
@@ -5,4 +5,4 @@ set -eu
 rm -rf ./dist
 
 npm run tsc
-cp -r "./server/static" "./dist"
+cp -r "./server/static" "./dist/server"
index baafe1ac45b45d256bfc8c0e4adcf5135d51401c..75e30353c37a868df3398b482ae4abcf9ddb54d1 100644 (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'))
   }
 )
 
index 5885262358b274b6230f42d464253f6566e60334..72d84695773eb4f0c01f025c7c9c6ff74a6068c3 100644 (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'