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:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user