summaryrefslogtreecommitdiff
path: root/benchmark/packages/timer/src
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/packages/timer/src')
-rw-r--r--benchmark/packages/timer/src/preview.ts2
-rw-r--r--benchmark/packages/timer/src/server.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/packages/timer/src/preview.ts b/benchmark/packages/timer/src/preview.ts
index 1208830dd..4ee43ebd0 100644
--- a/benchmark/packages/timer/src/preview.ts
+++ b/benchmark/packages/timer/src/preview.ts
@@ -1,5 +1,5 @@
import type { CreatePreviewServer } from 'astro';
-import { createServer } from 'http';
+import { createServer } from 'node:http';
import enableDestroy from 'server-destroy';
const preview: CreatePreviewServer = async function ({ serverEntrypoint, host, port }) {
diff --git a/benchmark/packages/timer/src/server.ts b/benchmark/packages/timer/src/server.ts
index 5cfa4ad76..28a406841 100644
--- a/benchmark/packages/timer/src/server.ts
+++ b/benchmark/packages/timer/src/server.ts
@@ -1,7 +1,7 @@
import { polyfill } from '@astrojs/webapi';
import type { SSRManifest } from 'astro';
import { NodeApp } from 'astro/app/node';
-import type { IncomingMessage, ServerResponse } from 'http';
+import type { IncomingMessage, ServerResponse } from 'node:http';
polyfill(globalThis, {
exclude: 'window document',