Skip to content

Commit

Permalink
Remove origin trial header
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois authored and RReverser committed Sep 6, 2021
1 parent 00cfdaf commit 0bef05b
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/static-build/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,6 @@ import { lookup as lookupMime } from 'mime-types';
const manifestSize = ({ width, height }: { width: number; height: number }) =>
`${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 {
[outputPath: string]: string;
}
Expand Down Expand Up @@ -110,15 +98,6 @@ const toOutput: Output = {
/*
Cross-Origin-Embedder-Policy: require-corp
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,
)}`
}
`,
};

Expand Down

0 comments on commit 0bef05b

Please sign in to comment.