-
Notifications
You must be signed in to change notification settings - Fork 11
🧹 [code health] Refactor app/create-session.tsx and update env docs #91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -154,8 +154,17 @@ bun reset-project # Reset to clean state | |
|
|
||
| ### API Key Setup | ||
|
|
||
| You can configure your Jules API key in two ways: | ||
|
|
||
| **Method 1: Environment Variable (Recommended for development)** | ||
| Create a `.env` file in the root directory and add your key: | ||
| ```bash | ||
| JULES_API_KEY=your_api_key_here | ||
| ``` | ||
|
Comment on lines
+159
to
+163
|
||
|
|
||
| **Method 2: In-App Settings** | ||
| 1. Open the app | ||
| 2. Navigate to **Settings** tab | ||
| 2. Navigate to the **Settings** tab | ||
| 3. Enter your Jules API Key | ||
| 4. The key is securely stored on your device | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここでは
.env+JULES_API_KEYを推奨していますが、Expo のクライアント側で参照できる環境変数はEXPO_PUBLIC_接頭辞が必要です。また、このリポジトリは.env自体は gitignore されておらず(.env*.localのみ)、API キーを誤ってコミットしやすいです。.env.local+EXPO_PUBLIC_JULES_API_KEY=...への変更と「コミットしない」注意書きを追加してください。