Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: clerk

Louis Beaumont6e9a4d2c38e0
diff --git a/screenpipe-app-tauri/app/layout.tsx b/screenpipe-app-tauri/app/layout.tsx
index 92e3dd244..1b5b566bd 100644
--- a/screenpipe-app-tauri/app/layout.tsx
+++ b/screenpipe-app-tauri/app/layout.tsx
@@ -7,8 +7,6 @@ import { ClerkProvider } from "@clerk/clerk-react";
const inter = Inter({ subsets: ["latin"] });
-
-
export default function RootLayout({
children,
}: {
@@ -16,7 +14,10 @@ export default function RootLayout({
}) {
return (
<html lang="en" suppressHydrationWarning>
- <ClerkProvider publishableKey="pk_live_Y2xlcmsuc2NyZWVucGkucGUk">
+ <ClerkProvider
+ publishableKey="pk_test_ZGVjZW50LXRyb3V0LTEuY2xlcmsuYWNjb3VudHMuZGV2JA"
+ allowedRedirectOrigins={["http://localhost:3000", "tauri://localhost"]}
+ >
<Providers>
<body className={inter.className}>
{children}
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index 831e4247d..7499247b4 100755
--- a/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -4170,7 +4170,7 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
[[package]]
name = "screenpipe-app"
-version = "0.14.9"
+version = "0.14.11"
dependencies = [
"anyhow",
"axum",
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index fde36fab9..3f4318a0d 100644
--- a/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "0.14.10"
+version = "0.14.11"
description = ""
authors = ["you"]
license = ""
diff --git a/screenpipe-app-tauri/src-tauri/tauri.conf.json b/screenpipe-app-tauri/src-tauri/tauri.conf.json
index 64f4ba0e3..01ea200da 100644
--- a/screenpipe-app-tauri/src-tauri/tauri.conf.json
+++ b/screenpipe-app-tauri/src-tauri/tauri.conf.json
@@ -106,15 +106,48 @@
"enable": false
},
"csp": {
- "default-src": "'self' customprotocol: asset:",
- "connect-src": "ipc: http://ipc.localhost https://youtube.com https://api.openai.com http://localhost:3030 http://localhost:* https://web.crabnebula.cloud https://api.github.com https://eu.i.posthog.com https://github.com https://*.githubusercontent.com https://*.github.com http://*:11434 http://*:9000 https://ai-proxy.i-f9f.workers.dev https://*.clerk.com https://*.screenpi.pe *",
+ "default-src": "'self' customprotocol: asset: http://localhost:* https://*.clerk.dev https://clerk.dev",
+ "connect-src": [
+ "ipc:",
+ "http://ipc.localhost",
+ "http://localhost:*",
+ "https://*.clerk.dev",
+ "https://clerk.dev",
+ "https://*.clerk.com",
+ "https://clerk.com",
+ "https://youtube.com",
+ "https://api.openai.com",
+ "http://localhost:3030",
+ "https://web.crabnebula.cloud",
+ "https://api.github.com",
+ "https://eu.i.posthog.com",
+ "https://github.com",
+ "https://*.githubusercontent.com",
+ "https://*.github.com",
+ "http://*:11434",
+ "http://*:9000",
+ "https://ai-proxy.i-f9f.workers.dev",
+ "https://*.clerk.com",
+ "https://*.screenpi.pe"
+ ],
"font-src": [
"https://fonts.gstatic.com",
"tauri://localhost",
"http://tauri.localhost"
],
"media-src": "'self' mediadevices: asset: http://asset.localhost file: blob: tauri://localhost file: blob: https://youtube.com https://github.com https://youtu.be",
- "img-src": "'self' asset: http://asset.localhost blob: data: https://*.githubusercontent.com https://*.github.com https://github.com https://*.s3.amazonaws.com https://*.clerk.com",
+ "img-src": [
+ "'self'",
+ "data:",
+ "https://*.clerk.dev",
+ "https://clerk.dev",
+ "https://*.clerk.com",
+ "https://clerk.com",
+ "https://*.githubusercontent.com",
+ "https://*.github.com",
+ "https://github.com",
+ "https://*.s3.amazonaws.com"
+ ],
"style-src": [
"'unsafe-inline'",
"'self'",
@@ -125,7 +158,31 @@
"data:",
"*"
],
- "frame-src": "https://www.youtube.com http://localhost:* https://*.clerk.com"
+ "frame-src": [
+ "http://localhost:*",
+ "https://*.clerk.dev",
+ "https://clerk.dev",
+ "https://*.clerk.com",
+ "https://clerk.com",
+ "https://www.youtube.com"
+ ],
+ "script-src": [
+ "'unsafe-eval'",
+ "'unsafe-inline'",
+ "'self'",
+ "http://localhost:*",
+ "https://*.clerk.dev",
+ "https://clerk.dev",
+ "https://*.clerk.com",
+ "https://clerk.com",
+ "tauri://localhost",
+ "https://*.githubusercontent.com",
+ "https://*.github.com",
+ "https://*.s3.amazonaws.com",
+ "https://*.clerk.com",
+ "https://*.screenpi.pe",
+ "https://ai-proxy.i-f9f.workers.dev"
+ ]
}
},
"macOSPrivateApi": true