Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0832a46

Browse files
committed
chore: remove meticulous from CI
1 parentf619500 commit0832a46

File tree

3 files changed

+2
-83
lines changed

3 files changed

+2
-83
lines changed

‎.github/workflows/meticulous.yaml‎

Lines changed: 0 additions & 46 deletions
This file was deleted.

‎coderd/httpmw/csp.go‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func CSPHeaders(telemetry bool, websocketHosts func() []string) func(next http.H
5959
cspDirectiveConnectSrc: {"'self'"},
6060
cspDirectiveChildSrc: {"'self'"},
6161
// https://github.com/suren-atoyan/monaco-react/issues/168
62-
cspDirectiveScriptSrc: {"'self'"},
62+
cspDirectiveScriptSrc: {"'self'"},
6363
cspDirectiveStyleSrc: {"'self' 'unsafe-inline'"},
6464
// data: is used by monaco editor on FE for Syntax Highlight
6565
cspDirectiveFontSrc: {"'self' data:"},
@@ -88,11 +88,6 @@ func CSPHeaders(telemetry bool, websocketHosts func() []string) func(next http.H
8888
iftelemetry {
8989
// If telemetry is enabled, we report to coder.com.
9090
cspSrcs.Append(cspDirectiveConnectSrc,"https://coder.com")
91-
// These are necessary to allow meticulous to collect sampling to
92-
// improve our testing. Only remove these if we're no longer using
93-
// their services.
94-
cspSrcs.Append(cspDirectiveConnectSrc,meticulousConnectSrc...)
95-
cspSrcs.Append(cspDirectiveScriptSrc,meticulousScriptSrc...)
9691
}
9792

9893
// This extra connect-src addition is required to support old webkit
@@ -136,8 +131,3 @@ func CSPHeaders(telemetry bool, websocketHosts func() []string) func(next http.H
136131
})
137132
}
138133
}
139-
140-
var (
141-
meticulousConnectSrc= []string{"https://cognito-identity.us-west-2.amazonaws.com","https://user-events-v3.s3-accelerate.amazonaws.com","*.sentry.io"}
142-
meticulousScriptSrc= []string{"https://snippet.meticulous.ai","https://browser.sentry-cdn.com"}
143-
)

‎site/src/index.tsx‎

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import{tryLoadAndStartRecorder}from"@alwaysmeticulous/recorder-loader";
21
import{createRoot}from"react-dom/client";
32
import{App}from"./App";
43

@@ -15,28 +14,4 @@ if (element === null) {
1514
}
1615

1716
constroot=createRoot(element);
18-
asyncfunctionstartApp(){
19-
// Record all sessions on localhost, staging stacks and preview URLs
20-
if(isInternal()){
21-
// Start the Meticulous recorder before you initialise your app.
22-
// Note: all errors are caught and logged, so no need to surround with try/catch
23-
awaittryLoadAndStartRecorder({
24-
projectId:"Y4uHy1qs0B660xxUdrkLPkazUMPr6OuTqYEnShaR",
25-
isProduction:false,
26-
});
27-
}
28-
29-
root.render(<App/>);
30-
}
31-
32-
functionisInternal(){
33-
return(
34-
process.env.NODE_ENV==="development"&&
35-
(window.location.hostname.indexOf("localhost")>-1||
36-
window.location.hostname.indexOf("127.0.0.1")>-1)
37-
);
38-
}
39-
40-
startApp().catch((error)=>{
41-
console.error(error);
42-
});
17+
root.render(<App/>);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp