Skip to content

Commit

Permalink
docs(vercel): add prod env vars and test (#3632)
Browse files Browse the repository at this point in the history
docs(vercel): add prod env vars and test (todo: fix breaking deployment)
  • Loading branch information
adnanrahic committed Feb 13, 2024
1 parent 75e769b commit fc565d5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/integration-testing-vercel-functions/.env.prod
@@ -0,0 +1,11 @@
# OTLP HTTP
OTEL_EXPORTER_OTLP_ENDPOINT="https://<YOUR_TRACETEST_CLOUD_AGENT_URL>.tracetest.io:443"

# Vercel Postgres
POSTGRES_DATABASE="**********"
POSTGRES_HOST="**********"
POSTGRES_PASSWORD="**********"
POSTGRES_PRISMA_URL="**********"
POSTGRES_URL="**********"
POSTGRES_URL_NON_POOLING="**********"
POSTGRES_USER="**********"
@@ -0,0 +1,18 @@
type: Test
spec:
id: p00W82OIR
name: Test API
trigger:
type: http
httpRequest:
method: GET
url: https://integration-testing-nextjs-vercel-functions.vercel.app/api/pokemon
body: "{\n \"id\": \"6\"\n}"
headers:
- key: Content-Type
value: application/json
specs:
- selector: span[tracetest.span.type="http"]
name: "All HTTP Spans: Status code is 200"
assertions:
- attr:http.status_code = 200

0 comments on commit fc565d5

Please sign in to comment.