From 86f40471ccda95fe4c9b024a786e072bff8c043f Mon Sep 17 00:00:00 2001 From: Akshat Raj <154466152+AkshatRaj00@users.noreply.github.com> Date: Sat, 23 May 2026 23:59:53 +0530 Subject: [PATCH] fix(starter): use relative paths for audio and texture assets Previously, chime.mp3 and webxr.png used absolute paths (/audio/... and /textures/...) which broke deployments to GitHub Pages or any non-root base URL, causing 404 errors for all static assets. Changed to relative paths (./audio/... and ./textures/...) consistent with how the GLTF assets are already referenced in the same file. Fixes #40, closes #44 --- .../starter-assets/starter-template/src/index.template.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/starter-assets/starter-template/src/index.template.ts b/packages/starter-assets/starter-template/src/index.template.ts index d5cdd32..15f3599 100644 --- a/packages/starter-assets/starter-template/src/index.template.ts +++ b/packages/starter-assets/starter-template/src/index.template.ts @@ -38,12 +38,12 @@ import { RobotSystem } from './robot.js'; const assets: AssetManifest = { chimeSound: { - url: '/audio/chime.mp3', + url: './audio/chime.mp3', type: AssetType.Audio, priority: 'background', }, webxr: { - url: '/textures/webxr.png', + url: './textures/webxr.png', type: AssetType.Texture, priority: 'critical', },