Skip to content

Commit

Permalink
Use the default export for cjs module
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Mar 24, 2022
1 parent c0fd1a2 commit 030c302
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/astro/src/core/app/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ComponentInstance, EndpointHandler, ManifestData, RouteData } from '../../@types/astro';
import type { SSRManifest as Manifest, RouteInfo } from './types';

import { getType as getMimeType } from 'mime';
import mime from 'mime';
import { defaultLogOptions } from '../logger.js';
export { deserializeManifest } from './common.js';
import { matchRoute } from '../routing/match.js';
Expand Down Expand Up @@ -118,7 +118,7 @@ export class App {
} else {
const body = result.body;
const headers = new Headers();
const mimeType = getMimeType(url.pathname);
const mimeType = mime.getType(url.pathname);
if(mimeType) {
headers.set('Content-Type', mimeType);
}
Expand Down

0 comments on commit 030c302

Please sign in to comment.