: '[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/'
},
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'
MUserFormattable,
MUserNotifSettingChannelDefault,
MUserWithNotificationSetting,
- MVideoFullLight,
MVideoWithRights
} from '@server/types/models'
import { hasUserRight, USER_ROLE_LABELS } from '../../../shared/core-utils/users'