[ci] format
This commit is contained in:
parent
408b50c5ea
commit
c0708c921c
3 changed files with 3 additions and 3 deletions
|
@ -1,13 +1,13 @@
|
||||||
import fs, { readFileSync } from 'node:fs';
|
import fs, { readFileSync } from 'node:fs';
|
||||||
import { basename, join } from 'node:path/posix';
|
import { basename, join } from 'node:path/posix';
|
||||||
import type { BuildPipeline } from '../../core/build/buildPipeline.js';
|
import type { BuildPipeline } from '../../core/build/buildPipeline.js';
|
||||||
|
import { getOutDirWithinCwd } from '../../core/build/common.js';
|
||||||
import { prependForwardSlash } from '../../core/path.js';
|
import { prependForwardSlash } from '../../core/path.js';
|
||||||
import { isServerLikeOutput } from '../../prerender/utils.js';
|
import { isServerLikeOutput } from '../../prerender/utils.js';
|
||||||
import { getConfiguredImageService, isESMImportedImage } from '../internal.js';
|
import { getConfiguredImageService, isESMImportedImage } from '../internal.js';
|
||||||
import type { LocalImageService } from '../services/service.js';
|
import type { LocalImageService } from '../services/service.js';
|
||||||
import type { ImageMetadata, ImageTransform } from '../types.js';
|
import type { ImageMetadata, ImageTransform } from '../types.js';
|
||||||
import { loadRemoteImage, type RemoteCacheEntry } from './remote.js';
|
import { loadRemoteImage, type RemoteCacheEntry } from './remote.js';
|
||||||
import { getOutDirWithinCwd } from "../../core/build/common.js";
|
|
||||||
|
|
||||||
interface GenerationDataUncached {
|
interface GenerationDataUncached {
|
||||||
cached: false;
|
cached: false;
|
||||||
|
|
|
@ -27,7 +27,7 @@ export async function getParamsAndProps(opts: GetParamsAndPropsOptions): Promise
|
||||||
const params = getRouteParams(route, pathname) ?? {};
|
const params = getRouteParams(route, pathname) ?? {};
|
||||||
|
|
||||||
if (routeIsRedirect(route)) {
|
if (routeIsRedirect(route)) {
|
||||||
return [params, {}]
|
return [params, {}];
|
||||||
}
|
}
|
||||||
|
|
||||||
validatePrerenderEndpointCollision(route, mod, params);
|
validatePrerenderEndpointCollision(route, mod, params);
|
||||||
|
|
|
@ -199,7 +199,7 @@ describe('Astro.redirect', () => {
|
||||||
const response = await fixture.fetch('/more/old/hello/world', { redirect: 'manual' });
|
const response = await fixture.fetch('/more/old/hello/world', { redirect: 'manual' });
|
||||||
expect(response.headers.get('Location')).to.equal('/more/hello/world');
|
expect(response.headers.get('Location')).to.equal('/more/hello/world');
|
||||||
});
|
});
|
||||||
|
|
||||||
it.skip('falls back to spread rule when dynamic rules should not match', async () => {
|
it.skip('falls back to spread rule when dynamic rules should not match', async () => {
|
||||||
const response = await fixture.fetch('/more/old/welcome/world', { redirect: 'manual' });
|
const response = await fixture.fetch('/more/old/welcome/world', { redirect: 'manual' });
|
||||||
expect(response.headers.get('Location')).to.equal('/more/new/welcome/world');
|
expect(response.headers.get('Location')).to.equal('/more/new/welcome/world');
|
||||||
|
|
Loading…
Reference in a new issue