Skip to content

Commit

Permalink
Revert "Avoid reading response body twice"
Browse files Browse the repository at this point in the history
This reverts commit cecf7dd.

Revert being stupid #1
  • Loading branch information
Theo-Steiner committed Jan 24, 2022
1 parent cecf7dd commit e6de8be
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, text);
writeFileSync(file, await result.text());
paths.push(dependency_path);
}

Expand Down

0 comments on commit e6de8be

Please sign in to comment.