Skip to content

Commit

Permalink
Fix E2E
Browse files Browse the repository at this point in the history
  • Loading branch information
N2D4 committed Jun 18, 2024
1 parent 00c56b4 commit 6758d96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/backend/prisma/seed.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { PrismaClient } from '@prisma/client';
import { getEnvVariable } from '@stackframe/stack-shared/dist/utils/env';
const prisma = new PrismaClient();


Expand Down Expand Up @@ -28,8 +29,8 @@ async function seed() {
apiKeySets: {
create: [{
description: "Internal API key set",
publishableClientKey: process.env.NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY ?? require('crypto').randomBytes(8).toString("hex"),
secretServerKey: process.env.STACK_SECRET_SERVER_KEY ?? require('crypto').randomBytes(8).toString("hex"),
publishableClientKey: getEnvVariable("NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY"),
secretServerKey: getEnvVariable("STACK_SECRET_SERVER_KEY"),
expiresAt: new Date('2099-12-31T23:59:59Z'),
}],
},
Expand Down

0 comments on commit 6758d96

Please sign in to comment.