Skip to content

Conversation

@veryayskiy
Copy link
Contributor

Changes

When we work with playground we mostly do it locally. So let's simplify the process.

Added a simple switch to run locally + dotenv to get the key from .env

@vercel
Copy link

vercel bot commented Jun 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
posthog-js ✅ Ready (Inspect) Visit Preview Jun 30, 2025 11:50am
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Enhanced local development setup for the VS Code extension playground by implementing environment variable support and local/remote resource switching.

  • Added dotenv configuration in packages/browser/playground/vscode-extension/package.json for loading project keys from .env files
  • Implemented local script loading toggle in packages/browser/playground/vscode-extension/src/extension.js with runningLocally flag
  • Added localResourceRoots configuration to webview for secure local resource access
  • Enabled PostHog debug mode for better development visibility
  • Updated documentation in packages/browser/playground/vscode-extension/README.md to reflect new local development options

3 files reviewed, 1 comment
Edit PR Review Bot Settings | Greptile

@github-actions
Copy link
Contributor

github-actions bot commented Jun 30, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Jun 30, 2025

Size Change: 0 B

Total Size: 3.57 MB

ℹ️ View Unchanged
Filename Size
packages/browser/dist/all-external-dependencies.js 220 kB
packages/browser/dist/array.full.es5.js 306 kB
packages/browser/dist/array.full.js 371 kB
packages/browser/dist/array.full.no-external.js 388 kB
packages/browser/dist/array.js 171 kB
packages/browser/dist/array.no-external.js 186 kB
packages/browser/dist/customizations.full.js 15.9 kB
packages/browser/dist/dead-clicks-autocapture.js 12.6 kB
packages/browser/dist/exception-autocapture.js 9.55 kB
packages/browser/dist/external-scripts-loader.js 2.57 kB
packages/browser/dist/main.js 172 kB
packages/browser/dist/module.full.js 371 kB
packages/browser/dist/module.full.no-external.js 388 kB
packages/browser/dist/module.js 172 kB
packages/browser/dist/module.no-external.js 187 kB
packages/browser/dist/posthog-recorder.js 207 kB
packages/browser/dist/recorder-v2.js 113 kB
packages/browser/dist/recorder.js 113 kB
packages/browser/dist/surveys-preview.js 70.7 kB
packages/browser/dist/surveys.js 78.8 kB
packages/browser/dist/tracing-headers.js 1.63 kB
packages/browser/dist/web-vitals.js 10.4 kB

compressed-size-action

Copy link
Member

@pauldambra pauldambra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all in a playground folder... zero read 👍 🤣

@veryayskiy veryayskiy merged commit ee1ff3c into main Jun 30, 2025
32 of 33 checks passed
@veryayskiy veryayskiy deleted the chore/playground/vs-code-locally branch June 30, 2025 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants