Skip to content

Commit 98a5890

Browse files
committed
fix
1 parent 7cfe71c commit 98a5890

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

.github/workflows/build-reusable.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,9 @@ jobs:
7575
printf "NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=%s\n" "$NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY" >> .env
7676
printf "LIVE_BLOCK_SECRET_API_KEY=%s\n" "$LIVE_BLOCK_SECRET_API_KEY" >> .env
7777
78-
# Verify .env file was created (without showing values)
79-
echo "Environment file created with variables:"
80-
cat .env | sed 's/=.*/=***/' || echo "Failed to create .env file"
8178
8279
# Run the build command
83-
pnpm build || {
84-
echo "Build failed. Checking environment variables..."
85-
# Check if environment variables are set (without showing values)
86-
env | grep -E 'NEXT_PUBLIC_|CLERK_|CONVEX_|LIVE_BLOCK_' | sed 's/=.*/=***/'
87-
exit 1
88-
}
80+
pnpm build
8981
9082
# Set output for the workflow
9183
echo "result=success" >> $GITHUB_OUTPUT

envConfig.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { loadEnvConfig } from "@next/env";
2+
3+
const projectDir = process.cwd();
4+
loadEnvConfig(projectDir);

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"@liveblocks/react": "^2.20.0",
1818
"@liveblocks/react-tiptap": "^2.20.0",
1919
"@liveblocks/react-ui": "^2.20.0",
20+
"@next/env": "^15.2.2",
2021
"@radix-ui/react-accordion": "^1.2.2",
2122
"@radix-ui/react-alert-dialog": "^1.1.5",
2223
"@radix-ui/react-aspect-ratio": "^1.1.1",

pnpm-lock.yaml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)