fix: resolve workspace integration blockers (#5)

This commit is contained in:
2026-07-29 10:01:17 +09:00
parent 3279ac099e
commit cadbd5fb60
37 changed files with 1817 additions and 73 deletions
+13
View File
@@ -0,0 +1,13 @@
import { describe, expect, it } from 'vitest';
import { publicAssetUrl } from '../apps/viewer-3d/src/runtimeBase';
describe('3D public asset URL', () => {
it('keeps decoder and preview assets under the configured deployment subpath', () => {
expect(publicAssetUrl('draco/', '/viewer-3d/', 'https://viewer.example')).toBe(
'https://viewer.example/viewer-3d/draco/',
);
expect(publicAssetUrl('/previews/Box.webp', '/viewer-3d/', 'https://viewer.example')).toBe(
'https://viewer.example/viewer-3d/previews/Box.webp',
);
});
});