Skip to content

Commit cecf7dd

Browse files
committed
Avoid reading response body twice
1 parent 5e5f30b commit cecf7dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/kit/src/core/adapt/prerender/prerender.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export async function prerender({ cwd, out, log, config, build_data, fallback, a
205205
mkdirp(dirname(file));
206206

207207
if (result.body) {
208-
writeFileSync(file, await result.text());
208+
writeFileSync(file, text);
209209
paths.push(dependency_path);
210210
}
211211

0 commit comments

Comments
 (0)