X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server.ts;h=7ab20643b9e287bc0c8cbc1a87807907dcb439a9;hb=9452d4fd3321148fb80b64a67bd9983fee6c208e;hp=73b7441f9f4b066793436f92bc29c408f6ec46d2;hpb=630d0a1bf5897fff203cb07e426223f55dcc882d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server.ts b/server.ts index 73b7441f9..7ab20643b 100644 --- a/server.ts +++ b/server.ts @@ -134,7 +134,7 @@ import { HttpStatusCode } from './shared/models/http/http-error-codes' import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache' import { ServerConfigManager } from '@server/lib/server-config-manager' import { VideoViewsManager } from '@server/lib/views/video-views-manager' -import { isTestInstance } from './server/helpers/core-utils' +import { isTestOrDevInstance } from './server/helpers/core-utils' import { OpenTelemetryMetrics } from '@server/lib/opentelemetry/metrics' // ----------- Command line ----------- @@ -148,7 +148,7 @@ cli // ----------- App ----------- // Enable CORS for develop -if (isTestInstance()) { +if (isTestOrDevInstance()) { app.use(cors({ origin: '*', exposedHeaders: 'Retry-After',