E2E: pass Clerk publishable key into Cypress env

This commit is contained in:
abhi1693
2026-02-07 17:14:26 +00:00
committed by Kunal
parent b82845aa42
commit cad1cfbd09

View File

@@ -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,