Fix dnt route
This commit is contained in:
parent
abb2c7927c
commit
d1105b97ef
|
@ -5,4 +5,4 @@ set -eu
|
||||||
rm -rf ./dist
|
rm -rf ./dist
|
||||||
|
|
||||||
npm run tsc
|
npm run tsc
|
||||||
cp -r "./server/static" "./dist"
|
cp -r "./server/static" "./dist/server"
|
||||||
|
|
|
@ -120,7 +120,7 @@ staticRouter.use('/.well-known/dnt-policy.txt',
|
||||||
(_, res: express.Response) => {
|
(_, res: express.Response) => {
|
||||||
res.type('text/plain')
|
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'))
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import * as config from 'config'
|
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 { UserModel } from '../models/account/user'
|
||||||
import { ApplicationModel } from '../models/application/application'
|
import { ApplicationModel } from '../models/application/application'
|
||||||
import { OAuthClientModel } from '../models/oauth/oauth-client'
|
import { OAuthClientModel } from '../models/oauth/oauth-client'
|
||||||
|
@ -7,7 +7,7 @@ import { parse } from 'url'
|
||||||
import { CONFIG } from './constants'
|
import { CONFIG } from './constants'
|
||||||
import { logger } from '../helpers/logger'
|
import { logger } from '../helpers/logger'
|
||||||
import { getServerActor } from '../helpers/utils'
|
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 { isArray } from '../helpers/custom-validators/misc'
|
||||||
import { uniq } from 'lodash'
|
import { uniq } from 'lodash'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue