Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
fix: harden self-hosted builds and job recovery
HoshinoSuzumiBot603ec9417c60
diff --git a/nuxt.config.ts b/nuxt.config.tsindex e893147d..a50bcc69 100644--- a/nuxt.config.ts+++ b/nuxt.config.ts@@ -181,6 +181,9 @@ export default defineNuxtConfig({build: {sourcemap: false,rollupOptions: {+ // Nitro resolves shared source imports before emitting the runtime bundle.+ // Keep their absolute identities instead of deriving paths from SSR chunks.+ makeAbsoluteExternalsRelative: false,output: {manualChunks(id) {if (!id.includes('node_modules')) {diff --git a/server/services/pipeline-queue/manager.ts b/server/services/pipeline-queue/manager.tsindex d07e6093..a9c6713e 100644--- a/server/services/pipeline-queue/manager.ts+++ b/server/services/pipeline-queue/manager.ts@@ -160,8 +160,7 @@ export class QueueManager {repository.commit(lease, () => enqueueLocationMigration(db))return}- const provider = await storageForReference(- lease,+ const provider = await storageForReference(lease, () =>getStorageManager().getProvider(),)const generated = new Set<string>(),diff --git a/server/utils/object-storage.ts b/server/utils/object-storage.tsindex 381eb00b..ce20f973 100644--- a/server/utils/object-storage.ts+++ b/server/utils/object-storage.ts@@ -9,9 +9,11 @@ const versions = new Map<string, StorageProvider>()/** Resolve immutable connection revisions, rather than silently reading the currently active provider. */export async function storageForReference(reference: { storageConnectionId: number | null; storageRevision: number },- fallback: StorageProvider,+ fallback: StorageProvider | (() => StorageProvider),): Promise<StorageProvider> {- if (reference.storageConnectionId === null) return fallback // Legacy unconfigured records.+ // Bound jobs can resume before the active storage manager has initialized.+ if (reference.storageConnectionId === null)+ return typeof fallback === 'function' ? fallback() : fallbackconst key = siteCacheKey(DEFAULT_SITE,`${reference.storageConnectionId}:${reference.storageRevision}`,