You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -142,6 +143,34 @@ Follow these steps to set up and run the project locally:
142
143
143
144
The application should now be running at [http://localhost:3000](http://localhost:3000)
144
145
146
+
### Local Setup with Netlify Dev (Recommended)
147
+
148
+
You can also use [Netlify Dev](https://www.netlify.com/products/dev/) to run your application locally with Netlify's full functionality:
149
+
150
+
1.**Install Netlify CLI globally** (if you haven't already)
151
+
```bash
152
+
npm install -g netlify-cli
153
+
```
154
+
155
+
2.**Link your Netlify site** (optional)
156
+
```bash
157
+
netlify link
158
+
```
159
+
This will connect your local project to a Netlify site. If you haven't created a Netlify site yet, you can skip this step.
160
+
161
+
3.**Start the development server with Netlify Dev**
162
+
```bash
163
+
netlify dev
164
+
```
165
+
This will:
166
+
- Start your local development server (similar to `npm run dev`)
167
+
- Load your Netlify environment variables
168
+
- Provide local versions of Netlify Functions (if any)
169
+
- Simulate the Netlify production environment locally
170
+
171
+
4.**Access your site**
172
+
The application will be available at [http://localhost:8888](http://localhost:8888) by default.
173
+
145
174
### Troubleshooting
146
175
147
176
-**Node.js version**: Ensure you're using Node.js v20.9 or higher. You can check your version with `node -v`.
@@ -197,6 +226,8 @@ If the Sentry environment variables are not defined, the application will run wi
197
226
198
227
## Environment Configuration
199
228
229
+
**Important**: Never commit your `.env` file to version control as it contains sensitive information. The `.env` file is already included in the project's `.gitignore` file to prevent accidental commits.
230
+
200
231
### Anthropic API Key
201
232
202
233
You can generate and manage your Anthropic API keys through the [Anthropic Console](https://console.anthropic.com/login).
<p>This app requires an Anthropic API key to work properly. Update your <code>.env</code> file or get a <ahref='https://console.anthropic.com/settings/keys'className='underline'>new Anthropic key</a>.</p>
264
+
<p>For local development, use <ahref='https://www.netlify.com/products/dev/'className='underline'>netlify dev</a> to automatically load environment variables.</p>
0 commit comments