Merge branch 'main' into feat/workflows

This commit is contained in:
Bart van der Braak 2023-08-02 02:13:21 +02:00 committed by GitHub
commit 95d99e0970
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 246 additions and 137 deletions

View file

@ -7,6 +7,26 @@
import Navigation from '../lib/components/Navigation.svelte';
import Header from '$lib/components/Header.svelte';
import { dev } from '$app/environment';
import { inject } from '@vercel/analytics';
inject({ mode: dev ? 'development' : 'production' });
import { webVitals } from '$lib/vitals';
import { browser } from '$app/environment';
import { page } from '$app/stores';
let analyticsId = import.meta.env.VERCEL_ANALYTICS_ID;
$: if (browser && analyticsId) {
webVitals({
path: $page.url.pathname,
params: $page.params,
analyticsId,
debug: false
});
}
let routes = [
{ url: '/', label: 'Home' },
{ url: '/projects', label: 'Projects' },