Skip to content

docs(react-native): document .env.local for Expo auth token#17898

Draft
betegon wants to merge 1 commit into
masterfrom
docs/expo-env-local-auth-token
Draft

docs(react-native): document .env.local for Expo auth token#17898
betegon wants to merge 1 commit into
masterfrom
docs/expo-env-local-auth-token

Conversation

@betegon
Copy link
Copy Markdown
Member

@betegon betegon commented May 27, 2026

The wizard listed .env.local as a file it creates, but never showed what goes in it. The Expo plugin snippet also showed a bare export shell command, which doesn't work for EAS builds.

What changed:

  • react-native-expo-plugin-code-snippet.mdx: replaced the shell export command with a proper .env.local code block (format that actually works for local builds), and added a note directing EAS users to add SENTRY_AUTH_TOKEN as an EAS secret instead
  • expo.mdx Notes: replaced vague "use an environment variable like SENTRY_AUTH_TOKEN" with explicit .env.local and EAS secret guidance
  • index.mdx + expo.mdx: fixed typo env.local.env.local in the wizard task expandables

Feedback from Antonis Lilis testing sentry init on Expo — the missing .env.local meant EAS builds couldn't upload source maps.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview, Comment May 27, 2026 7:08am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview May 27, 2026 7:08am

Request Review

The wizard expandable mentioned "env.local" (missing the leading dot, now
fixed) but never showed what it should contain. The Expo plugin snippet
showed a bare shell export command which doesn't work for EAS builds.

Changes:
- Expo plugin snippet: replace shell export with .env.local file format
  and add a note about using EAS secrets for EAS builds
- expo.mdx Notes: replace vague "use an environment variable" with
  explicit .env.local and EAS secret guidance
- index.mdx + expo.mdx: fix "env.local" → ".env.local" typo in
  wizard task expandables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant