Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/build-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ jobs:
# Liveblocks secret key:
LIVE_BLOCK_SECRET_API_KEY: ${{ secrets.LIVE_BLOCK_SECRET_API_KEY }}
run: |
# Create .env file to ensure environment variables are available at runtime
echo "LIVE_BLOCK_SECRET_API_KEY=$LIVE_BLOCK_SECRET_API_KEY" >> .env
echo "CLERK_SECRET_KEY=$CLERK_SECRET_KEY" >> .env
echo "NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=$NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY" >> .env
echo "NEXT_PUBLIC_CONVEX_URL=$NEXT_PUBLIC_CONVEX_URL" >> .env
echo "CONVEX_DEPLOYMENT=$CONVEX_DEPLOYMENT" >> .env

# Build
pnpm build
echo "result=success" >> $GITHUB_OUTPUT

Expand Down
2 changes: 1 addition & 1 deletion src/app/api/auth/liveblocks/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Liveblocks } from "@liveblocks/node";
import { ConvexHttpClient } from "convex/browser";
import { api } from "../../../../../convex/_generated/api";

const convex = new ConvexHttpClient("https://zany-dotterel-919.convex.cloud");
const convex = new ConvexHttpClient(process.env.NEXT_PUBLIC_CONVEX_URL!);
const liveblocks = new Liveblocks({
secret: process.env.LIVE_BLOCK_SECRET_API_KEY!,
});
Expand Down
Loading