Skip to content

Commit

Permalink
fix: ensure trailing slash on registry URL
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Aug 9, 2022
1 parent 5d93753 commit 31d3ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/lib/download-wasm-swc.ts
Expand Up @@ -83,7 +83,7 @@ export async function downloadWasmSwc(
try {
const output = execSync('npm config get registry').toString().trim()
if (output.startsWith('http')) {
registry = output
registry = output.endsWith('/') ? output : `${output}/`
}
} catch (_) {}

Expand Down

0 comments on commit 31d3ef2

Please sign in to comment.