Skip to content

Commit

Permalink
fix: router prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
cpvalente committed Dec 2, 2024
1 parent 1e8706a commit 601f0f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/server/src/externals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 601f0f2

Please sign in to comment.