mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-25 00:49:10 +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 {
|
try {
|
||||||
const data = readFileSync(indexFile, { encoding: 'utf-8', flag: 'r' }).replace(
|
const data = readFileSync(indexFile, { encoding: 'utf-8', flag: 'r' }).replace(
|
||||||
/<base href="[^"]*">/g,
|
/<base href="[^"]*">/g,
|
||||||
`<base href="${prefix}>"`,
|
`<base href="${prefix}" />`,
|
||||||
);
|
);
|
||||||
writeFileSync(indexFile, data, { encoding: 'utf-8', flag: 'w' });
|
writeFileSync(indexFile, data, { encoding: 'utf-8', flag: 'w' });
|
||||||
} catch (_error) {
|
} catch (_error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user