Skip to content

Commit

Permalink
Merge branch 'dev' into improve-exposed-types
Browse files Browse the repository at this point in the history
  • Loading branch information
ergunsh authored Sep 8, 2021
2 parents c4bc369 + 255dfa4 commit 2718077
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 29 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"lodash.camelcase": "^4.3.0",
"mime-types": "^2.1.28",
"npm-run-all": "^4.1.5",
"pointer-tracker": "^2.5.2",
"pointer-tracker": "^2.5.3",
"postcss": "^7.0.35",
"postcss-modules": "^3.2.2",
"postcss-nested": "^4.2.3",
Expand Down
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 2718077

Please sign in to comment.