chore: add config for claude code on web (#42044)

To use Claude Code on web, we need the LLM to have access to
dependencies. This creates a install_pkgs.sh script that runs `pnpm
install` only in the Claude Code remove environment.
This commit is contained in:
Charis authored and GitHub committed 2026-01-21 13:41:45 -05:00
1 parent db6ef58c3f
commit bd1ce11d1c
3 files changed
+26 -2

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
if [ "$CLAUDE_CODE_REMOTE" != "true" ]; then
exit 0
fi
pnpm install
+15
View File
@@ -0,0 +1,15 @@
{
"hooks": {
"SessionStart": [
{
"matcher": "startup",
"hooks": [
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/scripts/install_pkgs.sh"
}
]
}
]
}
}
+4 -2
View File
@@ -117,7 +117,9 @@ next-env.d.ts
.vercel
# AI assistant local files
.claude/
.claude/*
!.claude/settings.json
!.claude/scripts/
CLAUDE.md
#include template .env file for docker-compose
@@ -149,4 +151,4 @@ gcloud.json
# Sentry CLI config
**/.sentryclirc
keys.json
keys.json