fix: router prefix

This commit is contained in:
Carlos Valente
2024-12-02 14:41:59 +01:00
committed by Carlos Valente
parent 1e8706aa73
commit 82a2660fbc
+1 -1
View File
@@ -28,7 +28,7 @@ export function updateRouterPrefix(prefix: string | undefined = process.env.ROUT
try {
const data = readFileSync(indexFile, { encoding: 'utf-8', flag: 'r' }).replace(
/<base href="[^"]*">/g,
`<base href="${prefix}>"`,
`<base href="${prefix}" />`,
);
writeFileSync(indexFile, data, { encoding: 'utf-8', flag: 'w' });
} catch (_error) {