E2E: pass Clerk publishable key into Cypress env
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
import { defineConfig } from "cypress";
|
import { defineConfig } from "cypress";
|
||||||
|
|
||||||
export default defineConfig({
|
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: {
|
e2e: {
|
||||||
baseUrl: "http://localhost:3000",
|
baseUrl: "http://localhost:3000",
|
||||||
video: false,
|
video: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user