Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ BACHS_API_KEY="your-bachs-secret-key"
BACHS_API_BASE="https://sandbox-api.bachs.io" # live: https://api.bachs.io
BACHS_PRO_PRODUCT_ID="your-bachs-pro-product-id"
BACHS_WEBHOOK_SECRET="your-bachs-webhook-signing-secret"

# --- OpenTelemetry (optional) ---
# OTEL_SERVICE_NAME="your-app-name"
# OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
# OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
5 changes: 4 additions & 1 deletion drizzle/0001_jazzy_darkstar.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ CREATE TABLE "page_views" (
"created_at" timestamp with time zone DEFAULT now() NOT NULL
);
--> statement-breakpoint
CREATE INDEX "page_views_created_at_idx" ON "page_views" USING btree ("created_at");
CREATE INDEX "page_views_created_at_idx" ON "page_views" USING btree ("created_at");
CREATE INDEX "page_views_path_idx" ON "page_views" USING btree ("path");
CREATE INDEX "page_views_country_idx" ON "page_views" USING btree ("country");
CREATE INDEX "page_views_referrer_idx" ON "page_views" USING btree ("referrer");
2 changes: 1 addition & 1 deletion src/components/admin/countries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ export function AdminCountries({
)}
</article>
)
}
}
Loading