Skip to content

Commit 23e8abc

Browse files
authored
Merge pull request #23 from CROW-B3/CROW-181-imporvements-changes-data-collection
chore: link website-hook-sdk locally and add bun.lock
2 parents 7179eca + 5db7c88 commit 23e8abc

File tree

6 files changed

+3331
-13682
lines changed

6 files changed

+3331
-13682
lines changed

bun.lock

Lines changed: 3324 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/interaction-tracker.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ export function InteractionTracker() {
77
useEffect(() => {
88
// Create and initialize the SDK (only runs in browser)
99
const crow = createCrowSDK({
10-
projectId: "pk_test_abc123def456",
11-
debug: true, // Enable detailed logging
10+
debug: true,
1211
});
1312

1413
crow.initializeSdk();

next.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import type { NextConfig } from "next";
2+
import path from "path";
23

34
import { initOpenNextCloudflareForDev } from "@opennextjs/cloudflare";
45

56
const isDockerBuild = process.env.DOCKER_BUILD === "true";
67

78
const nextConfig: NextConfig = {
89
...(isDockerBuild && { output: "standalone" }),
10+
outputFileTracingRoot: path.resolve(__dirname),
911
compress: false,
1012
poweredByHeader: false,
1113
trailingSlash: true,

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "rouge-store",
33
"version": "0.1.0",
44
"private": true,
5-
"packageManager": "pnpm@10.26.2",
5+
"packageManager": "bun@1.2.4",
66
"scripts": {
77
"dev": "next dev",
88
"build": "next build",
@@ -23,10 +23,10 @@
2323
"cf-typegen": "wrangler types --env-interface CloudflareEnv ./cloudflare-env.d.ts",
2424
"prepare": "husky",
2525
"lint-staged": "lint-staged",
26-
"lighthouse:performance": "pnpm exec lighthouse http://localhost:3000 --only-categories=performance --output=json --verbose --chrome-flags=\"--headless\" --output-path ./.lighthouse/lighthouse-performance.json"
26+
"lighthouse:performance": "bunx lighthouse http://localhost:3000 --only-categories=performance --output=json --verbose --chrome-flags=\"--headless\" --output-path ./.lighthouse/lighthouse-performance.json"
2727
},
2828
"dependencies": {
29-
"@b3-crow/website-hook-sdk": "0.0.23",
29+
"@b3-crow/website-hook-sdk": "0.0.25",
3030
"@opennextjs/cloudflare": "^1.14.7",
3131
"@radix-ui/react-checkbox": "^1.3.3",
3232
"@radix-ui/react-separator": "^1.1.8",

0 commit comments

Comments
 (0)