Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Preview relative links
  • Loading branch information
frobinsonj committed Feb 17, 2023
1 parent c28f682 commit 3bfb6eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.mjs
Expand Up @@ -335,7 +335,7 @@ async function savePageAndResources(url, html, $) {
// write preview index page
const dir = `${output}/preview${url}`
ensureDirExists(dir)
html = html.replace(regexEmail, 'Licensed User').replace('<head>', '<head>\n<base href="https://pages.teamhydra.io/Team-Hydra/Tailwind/" />')
html = html.replace(regexEmail, 'Licensed User').replace('<head>', '<head>\n<base href="https://pages.teamhydra.io/Team-Hydra/Tailwind/" />').replace(/(src|href)="\//g, '$1="./')
fs.writeFileSync(`${dir}/index.html`, html)
console.log(`📝 Writing ${url}/index.html`)
}
Expand Down

0 comments on commit 3bfb6eb

Please sign in to comment.