summaryrefslogtreecommitdiff
path: root/packages/integrations/node/src/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/node/src/server.ts')
-rw-r--r--packages/integrations/node/src/server.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/integrations/node/src/server.ts b/packages/integrations/node/src/server.ts
index 98f5cd14b..04c81c2d1 100644
--- a/packages/integrations/node/src/server.ts
+++ b/packages/integrations/node/src/server.ts
@@ -1,14 +1,10 @@
-import { polyfill } from '@astrojs/webapi';
import type { SSRManifest } from 'astro';
-import { NodeApp } from 'astro/app/node';
+import { NodeApp, applyPolyfills } from 'astro/app/node';
import middleware from './nodeMiddleware.js';
import startServer from './standalone.js';
import type { Options } from './types';
-polyfill(globalThis, {
- exclude: 'window document',
-});
-
+applyPolyfills();
export function createExports(manifest: SSRManifest, options: Options) {
const app = new NodeApp(manifest);
return {
-01-03Cleanup internal breaking changes (#5724)Gravatar Bjorn Lu 4-33/+7 * Remove Astro.glob template literal trick * Remove RenderTemplateResult toString * Remove astro add volar warning * Add changeset 2023-01-03Fix astro-embed peerDep issue (#5731)Gravatar Matthew Phillips 2-2/+2 * Fix astro-embed peerDep issue * Update lockfile 2023-01-03Fix missing ts flag on main (#5730)Gravatar Matthew Phillips 1-0/+1 2023-01-03[ci] formatGravatar matthewp 3-10/+2 2023-01-03Remove MDX Fragment hack (#5716)Gravatar Bjorn Lu 2-9/+6 * Remove MDX Fragment hack * Update .changeset/lovely-terms-drive.md Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> 2023-01-03Remove deprecated APIs (#5707)Gravatar Bjorn Lu 18-217/+87 * Remove deprecated Astro globals * Remove deprecated hook param * Fix test * Add changeset * Add TODO 2023-01-03Unflag experimental features (#5728)Gravatar Nate Moore 13-122/+26 * feat: unflag `--experimental-error-overlay` * feat: unflag `--experimental-prerender` * chore: add changeset * Update chilled-geese-worry.md * test: update test to use `mjs` * Update .changeset/chilled-geese-worry.md Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update chilled-geese-worry.md Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> 2023-01-03Upgrade to Vite 4 (#5685)Gravatar Bjorn Lu 21-3459/+337 * Upgrade Vite 4 * Simplify Svelte preprocess setup * Upgrade rollup * Fix tests * Fix wrong changeset target * Fix error tests * Set NODE_ENV default 2023-01-03[ci] update lockfile (#5686)Gravatar Fred K. Bot 4-3215/+2864 * [ci] update lockfile * Fix build errors from new TypeScript version * Updated lockfile Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@skypack.dev>