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
Create or update the `vercel.json` file with the following:
@@ -100,7 +132,7 @@ Create or update the `vercel.json` file with the following:
100
132
101
133
</Step>
102
134
103
-
<Steptitle="Update `package.json` scripts">
135
+
<Steptitle="Update package.json scripts">
104
136
105
137
Update your `package.json` to include the following scripts:
106
138
@@ -148,7 +180,15 @@ Once you've added the environment variable, deploy your project to Vercel.
148
180
149
181
<Steptitle="Test your task in production">
150
182
151
-
After deployment, visit your Vercel deployment URL followed by `/api/trigger` (e.g., `https://your-app.vercel.app/api/trigger`) to test the Trigger.dev task in production.
183
+
After deployment, you can test your task in production by running this curl command:
184
+
185
+
```bash
186
+
curl -X POST https://your-app.vercel.app/api/hello-world \
187
+
-H "Content-Type: application/json" \
188
+
-d '{"name": "James"}'
189
+
```
190
+
191
+
This sends a POST request to your API endpoint with a JSON payload.
0 commit comments