mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-09 09:23:51 +00:00
fix: router prefix
This commit is contained in:
committed by
Carlos Valente
parent
1e8706aa73
commit
82a2660fbc
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user