Skip to content

Commit

Permalink
feat(astro): experimental middleware (#6721)
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Rainsberger <[email protected]>
  • Loading branch information
ematipico and sarah11918 authored May 3, 2023
1 parent 7a1cc62 commit c708fb6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/integrations/node/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { polyfill } from '@astrojs/webapi';
import type { SSRManifest } from 'astro';
import { NodeApp } from 'astro/app/node';
import middleware from './middleware.js';
import middleware from './nodeMiddleware.js';
import startServer from './standalone.js';
import type { Options } from './types';

Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/node/src/standalone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import https from 'https';
import path from 'path';
import { fileURLToPath } from 'url';
import { createServer } from './http-server.js';
import middleware from './middleware.js';
import middleware from './nodeMiddleware.js';
import type { Options } from './types';

function resolvePaths(options: Options) {
Expand Down

0 comments on commit c708fb6

Please sign in to comment.