Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and astrobot-houston committed Jun 5, 2023
1 parent 101f032 commit 4c33576
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/middleware/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ export default defineConfig({
mode: 'standalone',
}),
experimental: {
middleware: true
middleware: true,
},
});
3 changes: 1 addition & 2 deletions packages/astro/src/core/app/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type {
ComponentInstance,
EndpointHandler,
ManifestData,
MiddlewareResponseHandler,
Expand All @@ -9,6 +8,7 @@ import type {
import type { RouteInfo, SSRManifest as Manifest } from './types';

import mime from 'mime';
import type { SinglePageBuiltModule } from '../build/types';
import { attachToResponse, getSetCookiesFromResponse } from '../cookies/index.js';
import { callEndpoint, createAPIContext } from '../endpoint/index.js';
import { consoleLogDestination } from '../logger/console.js';
Expand All @@ -29,7 +29,6 @@ import {
createStylesheetElementSet,
} from '../render/ssr-element.js';
import { matchRoute } from '../routing/match.js';
import type { SinglePageBuiltModule } from '../build/types';
export { deserializeManifest } from './common.js';

const clientLocalsSymbol = Symbol.for('astro.locals');
Expand Down
2 changes: 0 additions & 2 deletions packages/astro/src/core/app/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type { MarkdownRenderingOptions } from '@astrojs/markdown-remark';
import type {
AstroMiddlewareInstance,
ComponentInstance,
RouteData,
SerializedRouteData,
SSRComponentMetadata,
Expand Down
1 change: 0 additions & 1 deletion packages/astro/src/core/build/plugins/plugin-ssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { getOutFile, getOutFolder } from '../common.js';
import { cssOrder, mergeInlineCss, type BuildInternals } from '../internal.js';
import type { AstroBuildPlugin } from '../plugin';
import type { StaticBuildOptions } from '../types';
import { MIDDLEWARE_MODULE_ID } from './plugin-middleware.js';
import { getVirtualModulePageNameFromPath } from './plugin-pages.js';
import { RENDERERS_MODULE_ID } from './plugin-renderers.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/core/redirects/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ export const RedirectSinglePageBuiltModule: SinglePageBuiltModule = {
page: () => Promise.resolve(RedirectComponentInstance),
middleware: StaticMiddlewareInstance,
renderers: [],
}
};

0 comments on commit 4c33576

Please sign in to comment.