Skip to content

Commit

Permalink
Update LighthouseCI config and add CSP meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
arnellebalane committed Sep 24, 2023
1 parent 9499f3b commit 9c112d3
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 15 deletions.
27 changes: 27 additions & 0 deletions .lighthouserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"ci": {
"collect": {
"staticDistDir": "dist",
"numberOfRuns": 3,
"settings": {
"preset": "desktop"
}
},

"assert": {
"preset": "lighthouse:no-pwa",
"assertions": {
"bf-cache": "off",
"csp-xss": "warn",
"errors-in-console": "warn",
"unused-javascript": "warn",
"non-composited-animations": "off"
}
},

"upload": {
"target": "lhci",
"serverBaseUrl": "https://lhci.arnelle.dev/"
}
}
}
15 changes: 0 additions & 15 deletions .lighthouserc.yml

This file was deleted.

4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self'; style-src 'self' 'unsafe-inline'; font-src 'self'; img-src 'self' data: blob: https: http:; script-src 'self'; connect-src 'self' https://simple-todo.arnelle.dev https://images.unsplash.com https://o31372.ingest.sentry.io"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<title>Simple Todo</title>
Expand Down
4 changes: 4 additions & 0 deletions public/privacy-policy.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self'; style-src 'self' 'unsafe-inline'; font-src 'self'; img-src 'self' data: blob: https: http:; script-src 'self'; connect-src 'self' https://simple-todo.arnelle.dev https://images.unsplash.com https://o31372.ingest.sentry.io"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="preconnect" href="https://use.typekit.net" />
Expand Down

0 comments on commit 9c112d3

Please sign in to comment.