]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Use named chunk for embed on analyze
authorChocobozzz <me@florianbigard.com>
Thu, 25 Feb 2021 14:00:43 +0000 (15:00 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 25 Feb 2021 14:01:29 +0000 (15:01 +0100)
client/webpack/webpack.video-embed.js
server/middlewares/validators/videos/videos.ts
server/models/account/user.ts

index ef17deeb6ce04c14fd48ac153ff86e6b01dc84fe..7de63adfcc40adc54ab52dd165d274fe45b3da04 100644 (file)
@@ -40,7 +40,11 @@ module.exports = function () {
         : '[name].[hash].bundle.js',
 
       sourceMapFilename: '[file].map',
-      chunkFilename: '[id].[hash].chunk.js',
+
+      chunkFilename: process.env.ANALYZE_BUNDLE === 'true'
+        ? '[name].chunk.js'
+        : '[id].[hash].chunk.js',
+
       publicPath: '/client/standalone/videos/'
     },
 
index d51c8697282411ed90bf8c59235666a60bea8855..37cc07b94477c17be57608473330da88b725a469 100644 (file)
@@ -3,7 +3,7 @@ import { body, param, query, ValidationChain } from 'express-validator'
 import { isAbleToUploadVideo } from '@server/lib/user'
 import { getServerActor } from '@server/models/application/application'
 import { ExpressPromiseHandler } from '@server/types/express'
-import { MVideoFullLight, MVideoWithRights } from '@server/types/models'
+import { MVideoWithRights } from '@server/types/models'
 import { ServerErrorCode, UserRight, VideoChangeOwnershipStatus, VideoPrivacy } from '../../../../shared'
 import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
 import { VideoChangeOwnershipAccept } from '../../../../shared/models/videos/video-change-ownership-accept.model'
index 0834ecfa592d1eddf2eb01f5b7a04b3d7a07afb6..c1f22b76aaad87c4195416c0096d6e1ffacd80fe 100644 (file)
@@ -28,7 +28,6 @@ import {
   MUserFormattable,
   MUserNotifSettingChannelDefault,
   MUserWithNotificationSetting,
-  MVideoFullLight,
   MVideoWithRights
 } from '@server/types/models'
 import { hasUserRight, USER_ROLE_LABELS } from '../../../shared/core-utils/users'