Skip to content

chore: enable Vercel Speed Insights #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
5 changes: 5 additions & 0 deletions .changeset/fifty-melons-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@faranglao/sveltekit-security-headers": patch
---

enable Vercel Speed Insights
40 changes: 38 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"@types/eslint": "8.56.2",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vercel/speed-insights": "^1.0.10",
"@vitest/coverage-v8": "^1.3.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
Expand Down
3 changes: 3 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<script>
import '../styles/app.css';
import { injectSpeedInsights } from '@vercel/speed-insights/sveltekit';

injectSpeedInsights();

const title = 'sveltekit-security-headers';
const description = 'Add HTTP Security Response Headers to any SvelteKit application';
Expand Down