Skip to content

Commit

Permalink
Avoid reading response body twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Theo-Steiner committed Jan 24, 2022
1 parent 5e5f30b commit cecf7dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/src/core/adapt/prerender/prerender.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export async function prerender({ cwd, out, log, config, build_data, fallback, a
mkdirp(dirname(file));

if (result.body) {
writeFileSync(file, await result.text());
writeFileSync(file, text);
paths.push(dependency_path);
}

Expand Down

0 comments on commit cecf7dd

Please sign in to comment.