(id: string)
| 23 | let isDev = false; |
| 24 | |
| 25 | const getAssetPath = (id: string): string => { |
| 26 | if (basePath === "/") { |
| 27 | return `/${id}`; |
| 28 | } |
| 29 | // Ensure basePath ends with / and construct the path manually to avoid platform-specific path issues |
| 30 | const normalizedBase = basePath.endsWith("/") ? basePath : basePath + "/"; |
| 31 | return normalizedBase + id; |
| 32 | }; |
| 33 | |
| 34 | return { |
| 35 | name: "fresh:server_entry", |