From cad1cfbd09eab31b2615f3222d8c3418efc00a1e Mon Sep 17 00:00:00 2001 From: abhi1693 Date: Sat, 7 Feb 2026 17:14:26 +0000 Subject: [PATCH] E2E: pass Clerk publishable key into Cypress env --- frontend/cypress.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/cypress.config.ts b/frontend/cypress.config.ts index 377f873a..eefc3865 100644 --- a/frontend/cypress.config.ts +++ b/frontend/cypress.config.ts @@ -1,6 +1,10 @@ import { defineConfig } from "cypress"; export default defineConfig({ + env: { + // Expose Clerk publishable key to tests (used to compute Clerk origin for cy.origin). + NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY, + }, e2e: { baseUrl: "http://localhost:3000", video: false,