Skip to content

Commit

Permalink
core: web target: load pages relative to self
Browse files Browse the repository at this point in the history
  • Loading branch information
terrablue committed Aug 5, 2024
1 parent c3c6533 commit db567e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/build/targets/web.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default async app => {
const pages = await Promise.all((await collect(d, html, { recursive: true }))
.map(async file => `${file}`.replace(`${d}/`, _ => "")));
const pages_str = pages.map(page =>
`"${page}": await file("./${location.pages}/${page}").text(),`).join("\n");
`"${page}": await join(import.meta.url, "../${location.pages}/${page}").text(),`).join("\n");

const assets_scripts = `
import file from "@rcompat/fs/file";
Expand Down

0 comments on commit db567e1

Please sign in to comment.