mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-15 01:59:57 +00:00
Remove origin trial header
This commit is contained in:
committed by
Ingvar Stepanyan
parent
00cfdafdf3
commit
0bef05bcd4
@@ -25,18 +25,6 @@ import { lookup as lookupMime } from 'mime-types';
|
|||||||
const manifestSize = ({ width, height }: { width: number; height: number }) =>
|
const manifestSize = ({ width, height }: { width: number; height: number }) =>
|
||||||
`${width}x${height}`;
|
`${width}x${height}`;
|
||||||
|
|
||||||
// Set by Netlify
|
|
||||||
const branch = process.env.BRANCH;
|
|
||||||
|
|
||||||
const branchOriginTrialIds = new Map([
|
|
||||||
[
|
|
||||||
'live',
|
|
||||||
'Aj5GY7W9AHM8di+yvMCajIhLRHoYN7slruwOYXE/Iub5hgmW/r2RQt07vrUuT4eUTkWxcyNCAVkiI+5ugdVW3gAAAABUeyJvcmlnaW4iOiJodHRwczovL3NxdW9vc2guYXBwOjQ0MyIsImZlYXR1cmUiOiJXZWJBc3NlbWJseVNpbWQiLCJleHBpcnkiOjE2MjM4MDE1OTl9',
|
|
||||||
],
|
|
||||||
]);
|
|
||||||
|
|
||||||
const originTrialId = branchOriginTrialIds.get(branch || '');
|
|
||||||
|
|
||||||
interface Output {
|
interface Output {
|
||||||
[outputPath: string]: string;
|
[outputPath: string]: string;
|
||||||
}
|
}
|
||||||
@@ -110,15 +98,6 @@ const toOutput: Output = {
|
|||||||
/*
|
/*
|
||||||
Cross-Origin-Embedder-Policy: require-corp
|
Cross-Origin-Embedder-Policy: require-corp
|
||||||
Cross-Origin-Opener-Policy: same-origin
|
Cross-Origin-Opener-Policy: same-origin
|
||||||
|
|
||||||
# Origin trial for WebAssembly SIMD.
|
|
||||||
${
|
|
||||||
originTrialId
|
|
||||||
? ` Origin-Trial: ${originTrialId}`
|
|
||||||
: `# Cannot find origin trial ID. process.env.BRANCH is: ${JSON.stringify(
|
|
||||||
branch,
|
|
||||||
)}`
|
|
||||||
}
|
|
||||||
`,
|
`,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user