Skip to content

Commit 7ed847f

Browse files
committed
Add ketch script and update vercel.json
1 parent 2a379f3 commit 7ed847f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

pages/+Head.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ export default function Head() {
77
<meta charSet="UTF-8" />
88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
99
<link rel="icon" type="image/x-icon" href={faviconPath} />
10+
<script
11+
// biome-ignore lint/security/noDangerouslySetInnerHtml: Theme script requires dynamic content
12+
dangerouslySetInnerHTML={{
13+
__html: `(() => {
14+
window.semaphore = window.semaphore || [];
15+
window.ketch = (...args) => {
16+
window.semaphore.push(args);
17+
};
18+
})();`,
19+
}}
20+
/>
1021
<script
1122
// biome-ignore lint/security/noDangerouslySetInnerHtml: Theme script requires dynamic content
1223
dangerouslySetInnerHTML={{

vercel.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"build": {
3+
"outputDirectory": "dist/client"
4+
},
25
"rewrites": [
36
{
47
"source": "/(.*)",

0 commit comments

Comments
 (0)