Skip to content

Commit 040cbbe

Browse files
committed
fix(viewer): load the bundle from its actual dist path
The server resolves app assets as dist/$app-$name, so requesting 'viewer-init' for the viewer app looked for dist/viewer-viewer-init.mjs. The frontend build emits dist/viewer-init.mjs, so the bundle was never served and the viewer never initialised. The old name was correct while the app built into its own js/ folder as a separate repository; under the shared frontend build the app name is already part of the file name. Assisted-by: ClaudeCode:claude-opus-4-8 Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent c242da6 commit 040cbbe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/viewer/lib/Listener/LoadViewerScript.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public function handle(Event $event): void {
4040
return;
4141
}
4242

43-
Util::addStyle(Application::APP_ID, 'viewer-init');
44-
Util::addInitScript(Application::APP_ID, 'viewer-init');
43+
Util::addStyle(Application::APP_ID, 'init');
44+
Util::addInitScript(Application::APP_ID, 'init');
4545
$this->initialStateService->provideInitialState('enabled_preview_providers', array_keys($this->previewManager->getProviders()));
4646
}
4747
}

0 commit comments

Comments
 (0)