Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/google-analytics/google-analytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ export function GoogleAnalytics() {
return (
<>
<Script
strategy="afterInteractive"
strategy="lazyOnload"
src="https://www.googletagmanager.com/gtag/js?id=G-D29TK8JDQC"
/>
<Script
id="google-analytics"
strategy="afterInteractive"
strategy="lazyOnload"
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
Expand Down
6 changes: 1 addition & 5 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { withSentryConfig } from '@sentry/nextjs';

const ContentSecurityPolicy = `
default-src 'self';
script-src 'self' 'unsafe-eval' 'unsafe-inline' https://www.googletagmanager.com https://www.google-analytics.com https://va.vercel-scripts.com https://vercel.live;
script-src 'self' 'unsafe-eval' 'unsafe-inline' https://www.googletagmanager.com https://va.vercel-scripts.com/ https://vercel.live/;
style-src 'self' 'unsafe-inline';
img-src 'self' https://www.google-analytics.com https://www.googletagmanager.com;
connect-src 'self' https://www.google-analytics.com https://analytics.google.com https://*.google-analytics.com https://*.ingest.sentry.io https://va.vercel-scripts.com https://vitals.vercel-insights.com https://vercel.live;
Expand Down Expand Up @@ -45,10 +45,6 @@ const securityHeaders = [
key: 'Strict-Transport-Security',
value: 'max-age=31536000; includeSubDomains; preload',
},
{
key: 'Permissions-Policy',
value: 'camera=(), microphone=(), geolocation=(), payment=(), usb=(), interest-cohort=()',
},
];

/** @type {import('next').NextConfig} */
Expand Down
2 changes: 0 additions & 2 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ export default function Document() {
href="/static/favicons/safari-pinned-tab.svg"
rel="mask-icon"
/>
<link rel="preconnect" href="https://www.googletagmanager.com" />
<link rel="dns-prefetch" href="https://www.googletagmanager.com" />
<meta
content="#f9fafb"
name="theme-color"
Expand Down
4 changes: 2 additions & 2 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function IndexPage(props: IndexPageProps) {
<Image
alt="Serhii Shramko's avatar - smile iOS emoji"
src={smile}
quality={100}
quality={75}
width={128}
height={128}
className={clsx('absolute', {
Expand All @@ -110,7 +110,7 @@ function IndexPage(props: IndexPageProps) {
<Image
alt="Serhii Shramko's avatar - tongue iOS emoji"
src={tongue}
quality={100}
quality={75}
width={128}
height={128}
className={clsx('absolute', {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@/components/*": ["components/*"],
"@/lib/*": ["lib/*"]
},
"target": "ES2017",
"target": "ES2022",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
Expand Down
Loading