Skip to content

Commit

Permalink
chore: remove thesemetrics
Browse files Browse the repository at this point in the history
  • Loading branch information
ElMassimo committed Oct 22, 2024
1 parent 9bf3e30 commit 8c94377
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 36 deletions.
30 changes: 0 additions & 30 deletions docs/iles.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,36 +54,6 @@ export default defineConfig({
},
workbox: {
globPatterns: ['**/*.{js,css,svg,ico,png,avif,json,xml,html}'],
runtimeCaching: [
{
urlPattern: new RegExp('https://unpkg.com/.*', 'i'),
handler: 'CacheFirst',
options: {
cacheName: 'unpkg-cache',
expiration: {
maxEntries: 10,
maxAgeSeconds: 60 * 60 * 24 * 365, // <== 365 days
},
cacheableResponse: {
statuses: [0, 200],
},
},
},
{
urlPattern: new RegExp('https://pixel.thesemetrics.org/.*', 'i'),
handler: 'CacheFirst',
options: {
cacheName: 'thesemetrics-cache',
expiration: {
maxEntries: 10,
maxAgeSeconds: 60 * 60 * 24 * 365, // <== 365 days
},
cacheableResponse: {
statuses: [0, 200],
},
},
},
],
},
}),
],
Expand Down
2 changes: 1 addition & 1 deletion docs/public/_headers
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
x-content-type-options: nosniff
referrer-policy: no-referrer
strict-transport-security: max-age=31536000; includeSubDomains
content-security-policy-report-only: default-src 'self'; font-src 'self'; img-src 'self' data: pixel.thesemetrics.org developer.stackblitz.com; script-src 'self' 'unsafe-inline' unpkg.com; connect-src 'self' 'unsafe-inline' pixel.thesemetrics.org; style-src 'self'
content-security-policy-report-only: default-src 'self'; font-src 'self'; img-src 'self' data: developer.stackblitz.com; script-src 'self' 'unsafe-inline'; connect-src 'self' 'unsafe-inline'; style-src 'self'
5 changes: 0 additions & 5 deletions docs/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,11 @@ import type { Script } from '@unhead/schema'

type TurboScript = Script & { once: true }

const prodScripts = import.meta.env.PROD ? [
{ src: 'https://unpkg.com/thesemetrics@latest', async: true, once: true, crossorigin: 'anonymous' } as TurboScript,
] : []

export default defineApp({
head: {
htmlAttrs: { lang: 'en-US' },
script: [
{ children: checkDarkTheme, once: true } as TurboScript,
...prodScripts,
],
},
mdxComponents: {
Expand Down

0 comments on commit 8c94377

Please sign in to comment.