Skip to content

Commit a35c21c

Browse files
ematipicoastrobot-houston
authored andcommitted
[ci] format
1 parent 46d0a0b commit a35c21c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

packages/astro/src/core/app/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type {
99
import type { SinglePageBuiltModule } from '../build/types';
1010
import { getSetCookiesFromResponse } from '../cookies/index.js';
1111
import { consoleLogDestination } from '../logger/console.js';
12-
import { error, type LogOptions, warn } from '../logger/core.js';
12+
import { error, warn, type LogOptions } from '../logger/core.js';
1313
import {
1414
collapseDuplicateSlashes,
1515
prependForwardSlash,

packages/astro/src/core/build/plugins/plugin-manifest.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,7 @@ function buildManifest(
239239
}
240240
const isEdgeMiddleware =
241241
// TODO: remove in Astro 4.0
242-
settings.config.build.excludeMiddleware ||
243-
settings.adapter?.adapterFeatures?.edgeMiddleware;
242+
settings.config.build.excludeMiddleware || settings.adapter?.adapterFeatures?.edgeMiddleware;
244243

245244
const ssrManifest: SerializedSSRManifest = {
246245
adapterName: opts.settings.adapter?.name ?? '',
@@ -254,7 +253,9 @@ function buildManifest(
254253
clientDirectives: Array.from(settings.clientDirectives),
255254
entryModules,
256255
assets: staticFiles.map(prefixAssetPath),
257-
middlewareEntryPoint: !isEdgeMiddleware ? internals.middlewareEntryPoint?.toString() : undefined,
256+
middlewareEntryPoint: !isEdgeMiddleware
257+
? internals.middlewareEntryPoint?.toString()
258+
: undefined,
258259
};
259260

260261
return ssrManifest;

packages/astro/src/core/build/plugins/plugin-middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import type { Plugin as VitePlugin } from 'vite';
2+
import { getOutputDirectory } from '../../../prerender/utils.js';
23
import { MIDDLEWARE_PATH_SEGMENT_NAME } from '../../constants.js';
34
import { addRollupInput } from '../add-rollup-input.js';
45
import type { BuildInternals } from '../internal';
56
import type { AstroBuildPlugin } from '../plugin';
67
import type { StaticBuildOptions } from '../types';
7-
import { getOutputDirectory } from '../../../prerender/utils.js';
88

99
export const MIDDLEWARE_MODULE_ID = '@astro-middleware';
1010

packages/astro/test/middleware.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ describe('Middleware API in PROD mode, SSR', () => {
220220
expect(text.includes('Error')).to.be.true;
221221
expect(text.includes('bar')).to.be.true;
222222
});
223-
223+
224224
it('the integration should receive the path to the middleware', async () => {
225225
fixture = await loadFixture({
226226
root: './fixtures/middleware-dev/',
@@ -245,7 +245,6 @@ describe('Middleware API in PROD mode, SSR', () => {
245245
throw e;
246246
}
247247
});
248-
249248
});
250249

251250
describe('Middleware with tailwind', () => {

0 commit comments

Comments
 (0)