The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Seed local Acme workspace with ACME_WORKSPACE_ID
Cursor Agentf4acc5eeae2e
diff --git a/apps/web/scripts/dev/data.json b/apps/web/scripts/dev/data.jsonindex b8514342e1..375542eb11 100644--- a/apps/web/scripts/dev/data.json+++ b/apps/web/scripts/dev/data.json@@ -1,6 +1,6 @@{"workspace": {- "id": "ws_1KETZ919F83ZJH6A80HWEHW6E",+ "id": "clrei1gld0002vs9mzn93p8ik","name": "Acme, Inc.","slug": "acme","logo": "https://assets.dub.co/logo.png",diff --git a/apps/web/scripts/dev/seed.ts b/apps/web/scripts/dev/seed.tsindex 0db48d6562..2b86bbe5d3 100644--- a/apps/web/scripts/dev/seed.ts+++ b/apps/web/scripts/dev/seed.ts@@ -1,6 +1,7 @@import { createId } from "@/lib/api/create-id";import { hashPassword } from "@/lib/auth/password";import { prisma } from "@/lib/prisma";+import { ACME_PROGRAM_ID, ACME_WORKSPACE_ID } from "@dub/utils";import {Domain,EmailDomain,@@ -136,7 +137,14 @@ type SeedData = {const parseJSON = (): SeedData => {const jsonPath = path.join(__dirname, "data.json");- const jsonData = JSON.parse(fs.readFileSync(jsonPath, "utf-8"));+ const jsonData = JSON.parse(fs.readFileSync(jsonPath, "utf-8")) as SeedData;++ // Keep the local Acme seed aligned with the canonical IDs used by e2e+ // guards, cleanup jobs, and other Acme-specific helpers.+ jsonData.workspace.id = ACME_WORKSPACE_ID;+ jsonData.workspace.defaultProgramId = ACME_PROGRAM_ID;+ jsonData.program.id = ACME_PROGRAM_ID;+return jsonData;};