mirror of
https://github.com/immich-app/immich.git
synced 2025-11-13 10:12:40 +09:00
refactor(server): new version check (#9555)
This commit is contained in:
@@ -29,11 +29,11 @@ async function bootstrap() {
|
||||
app.set('etag', 'strong');
|
||||
app.use(cookieParser());
|
||||
app.use(json({ limit: '10mb' }));
|
||||
if (isDev) {
|
||||
if (isDev()) {
|
||||
app.enableCors();
|
||||
}
|
||||
app.useWebSocketAdapter(new WebSocketAdapter(app));
|
||||
useSwagger(app, isDev);
|
||||
useSwagger(app);
|
||||
|
||||
app.setGlobalPrefix('api', { exclude: excludePaths });
|
||||
if (existsSync(WEB_ROOT)) {
|
||||
|
||||
Reference in New Issue
Block a user