Fix: Remove duplicate /assets/ prefix from manifest paths

- Manifest already includes 'assets/' prefix
- Fixes double /assets/assets/ paths in production
- Ensures correct asset loading
This commit is contained in:
2025-10-02 00:51:52 +02:00
parent 65a0b8c823
commit 277be954b7

View File

@@ -16,9 +16,9 @@ export function clientEntry(c: Context<BlankEnv>) {
const manifest = JSON.parse(readFileSync(manifestPath, 'utf-8')); const manifest = JSON.parse(readFileSync(manifestPath, 'utf-8'));
const entry = manifest['index.html']; const entry = manifest['index.html'];
if (entry) { if (entry) {
jsFile = `/assets/${entry.file}`; jsFile = `/${entry.file}`;
if (entry.css) { if (entry.css) {
cssFiles = entry.css.map((css: string) => `/assets/${css}`); cssFiles = entry.css.map((css: string) => `/${css}`);
} }
} }
} catch (error) { } catch (error) {