diff --git a/sites/svelte.dev/scripts/get_contributors.js b/sites/svelte.dev/scripts/get_contributors.js index 00c7830096..cc2b9d4ae7 100644 --- a/sites/svelte.dev/scripts/get_contributors.js +++ b/sites/svelte.dev/scripts/get_contributors.js @@ -65,7 +65,9 @@ try { await sprite .quality(80) .writeAsync( - new URL(`../src/routes/_components/Supporters/contributors.jpg`, import.meta.url).pathname + fileURLToPath( + new URL(`../src/routes/_components/Supporters/contributors.jpg`, import.meta.url) + ) ); const str = `[\n\t${authors.map((a) => `'${a.login}'`).join(',\n\t')}\n]`; diff --git a/sites/svelte.dev/scripts/get_donors.js b/sites/svelte.dev/scripts/get_donors.js index 60749f21c5..d90832f0dd 100644 --- a/sites/svelte.dev/scripts/get_donors.js +++ b/sites/svelte.dev/scripts/get_donors.js @@ -59,7 +59,7 @@ try { await sprite .quality(80) .writeAsync( - new URL(`../src/routes/_components/Supporters/donors.jpg`, import.meta.url).pathname + fileURLToPath(new URL(`../src/routes/_components/Supporters/donors.jpg`, import.meta.url)) ); const str = `[\n\t${included.map((a) => `${JSON.stringify(a.backer.name)}`).join(',\n\t')}\n]`;