mirror of
https://github.com/withastro/astro.git
synced 2025-12-05 18:56:38 -06:00
[ci] format
This commit is contained in:
committed by
astrobot-houston
parent
9b3241d8a9
commit
bc6e6ccb21
@@ -1,9 +1,6 @@
|
||||
import type { AssetsPrefix } from '../../core/app/types.js';
|
||||
|
||||
export function getAssetsPrefix(
|
||||
fileExtension: string,
|
||||
assetsPrefix?: AssetsPrefix,
|
||||
): string {
|
||||
export function getAssetsPrefix(fileExtension: string, assetsPrefix?: AssetsPrefix): string {
|
||||
let prefix = '';
|
||||
if (!assetsPrefix) {
|
||||
prefix = '';
|
||||
|
||||
@@ -52,7 +52,9 @@ export function createStylesheetElementSet(
|
||||
assetsPrefix?: AssetsPrefix,
|
||||
queryParams?: URLSearchParams,
|
||||
): Set<SSRElement> {
|
||||
return new Set(stylesheets.map((s) => createStylesheetElement(s, base, assetsPrefix, queryParams)));
|
||||
return new Set(
|
||||
stylesheets.map((s) => createStylesheetElement(s, base, assetsPrefix, queryParams)),
|
||||
);
|
||||
}
|
||||
|
||||
export function createModuleScriptElement(
|
||||
|
||||
@@ -691,8 +691,8 @@ export default function netlifyIntegration(
|
||||
return {};
|
||||
},
|
||||
assetQueryParams: process.env.DEPLOY_ID
|
||||
? new URLSearchParams({ dpl: process.env.DEPLOY_ID })
|
||||
: undefined,
|
||||
? new URLSearchParams({ dpl: process.env.DEPLOY_ID })
|
||||
: undefined,
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
@@ -42,10 +42,7 @@ describe(
|
||||
it('Manifest contains internalFetchHeaders', async () => {
|
||||
// The manifest is embedded in the build output
|
||||
// Check the manifest file which contains the serialized manifest
|
||||
const manifestURL = new URL(
|
||||
'./fixtures/skew-protection/.netlify/build/',
|
||||
import.meta.url,
|
||||
);
|
||||
const manifestURL = new URL('./fixtures/skew-protection/.netlify/build/', import.meta.url);
|
||||
|
||||
// Find the manifest file (it has a hash in the name)
|
||||
const { readdir } = await import('node:fs/promises');
|
||||
|
||||
@@ -137,9 +137,10 @@ function getAdapter({
|
||||
return {};
|
||||
}
|
||||
: undefined,
|
||||
assetQueryParams: skewProtection && process.env.VERCEL_DEPLOYMENT_ID
|
||||
? new URLSearchParams({ dpl: process.env.VERCEL_DEPLOYMENT_ID })
|
||||
: undefined,
|
||||
assetQueryParams:
|
||||
skewProtection && process.env.VERCEL_DEPLOYMENT_ID
|
||||
? new URLSearchParams({ dpl: process.env.VERCEL_DEPLOYMENT_ID })
|
||||
: undefined,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user