Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

docs: fix api reference

Carl-Gerhard Lindesvärd013991cca603
diff --git a/apps/public/content/docs/api/export.mdx b/apps/public/content/docs/api/export.mdx
index 2ccb9fa6a..d2244bd31 100644
--- a/apps/public/content/docs/api/export.mdx
+++ b/apps/public/content/docs/api/export.mdx
@@ -22,4 +22,4 @@ The `/export/events` endpoint accepts filters, pagination, and an `includes` par
The `/export/charts` endpoint accepts a `series` array where each item can specify an event name, filters, and a segment type (`event`, `user`, `session`, `property_sum`, etc.).
-For full query parameter and response schemas, see the [API Reference](/docs/api-reference/export).
+For full query parameter and response schemas, see the [API Reference](/docs/api-reference).
diff --git a/apps/public/content/docs/api/insights.mdx b/apps/public/content/docs/api/insights.mdx
index 1a744e8be..698145cf8 100644
--- a/apps/public/content/docs/api/insights.mdx
+++ b/apps/public/content/docs/api/insights.mdx
@@ -27,4 +27,4 @@ https://api.openpanel.dev/insights/{projectId}
Most endpoints accept `startDate`, `endDate`, `range`, `filters`, `cursor`, and `limit` query parameters.
-For full schemas and all available endpoints, see the [API Reference](/docs/api-reference/insights).
+For full schemas and all available endpoints, see the [API Reference](/docs/api-reference).
diff --git a/apps/public/content/docs/api/manage/clients.mdx b/apps/public/content/docs/api/manage/clients.mdx
index ec014d0a7..4c4d0105b 100644
--- a/apps/public/content/docs/api/manage/clients.mdx
+++ b/apps/public/content/docs/api/manage/clients.mdx
@@ -33,4 +33,4 @@ https://api.openpanel.dev/manage/clients
Client secrets are only returned once at creation time and are never retrievable afterwards.
-For full request/response schemas, see the [API Reference](/docs/api-reference/manage).
+For full request/response schemas, see the [API Reference](/docs/api-reference).
diff --git a/apps/public/content/docs/api/manage/index.mdx b/apps/public/content/docs/api/manage/index.mdx
index e3bf7fa6b..46c7e350b 100644
--- a/apps/public/content/docs/api/manage/index.mdx
+++ b/apps/public/content/docs/api/manage/index.mdx
@@ -25,4 +25,4 @@ https://api.openpanel.dev/manage
20 requests per 10 seconds per client.
-For full endpoint schemas, see the [API Reference](/docs/api-reference/manage).
+For full endpoint schemas, see the [API Reference](/docs/api-reference).
diff --git a/apps/public/content/docs/api/manage/projects.mdx b/apps/public/content/docs/api/manage/projects.mdx
index 035650ce0..b9cd5e2d7 100644
--- a/apps/public/content/docs/api/manage/projects.mdx
+++ b/apps/public/content/docs/api/manage/projects.mdx
@@ -25,4 +25,4 @@ https://api.openpanel.dev/manage/projects
When you create a project, a default `write` client is automatically created and returned with the response. The client secret is only shown once.
-For full request/response schemas, see the [API Reference](/docs/api-reference/manage).
+For full request/response schemas, see the [API Reference](/docs/api-reference).
diff --git a/apps/public/content/docs/api/manage/references.mdx b/apps/public/content/docs/api/manage/references.mdx
index 263971d84..ae1f8c0b9 100644
--- a/apps/public/content/docs/api/manage/references.mdx
+++ b/apps/public/content/docs/api/manage/references.mdx
@@ -27,4 +27,4 @@ References are markers on your analytics timeline — useful for product launche
| `PATCH` | `/manage/references/{id}` | Update a reference |
| `DELETE` | `/manage/references/{id}` | Delete a reference |
-For full request/response schemas, see the [API Reference](/docs/api-reference/manage).
+For full request/response schemas, see the [API Reference](/docs/api-reference).
diff --git a/apps/public/content/docs/api/track.mdx b/apps/public/content/docs/api/track.mdx
index 6c75ad587..d32691ccc 100644
--- a/apps/public/content/docs/api/track.mdx
+++ b/apps/public/content/docs/api/track.mdx
@@ -40,4 +40,4 @@ The `/track` endpoint accepts a `type` field that determines what gets recorded:
Groups are never auto-populated on events — even after `assign_group`. Pass `groups` explicitly on each `track` call where you need group data.
-For full request/response schemas for every event type, see the [API Reference](/docs/api-reference/track/post).
+For full request/response schemas for every event type, see the [API Reference](/docs/api-reference/track/track/post).
diff --git a/apps/public/package.json b/apps/public/package.json
index b40c360e0..b2d7611a2 100644
--- a/apps/public/package.json
+++ b/apps/public/package.json
@@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"scripts": {
- "build": "next build",
+ "build": "next build --webpack",
"dev": "next dev -p 9090",
"start": "next start",
"typecheck": "fumadocs-mdx && tsc --noEmit",
diff --git a/apps/public/src/lib/openapi.ts b/apps/public/src/lib/openapi.ts
index 5a11318c7..c789d3879 100644
--- a/apps/public/src/lib/openapi.ts
+++ b/apps/public/src/lib/openapi.ts
@@ -4,7 +4,7 @@ import {
openapiPlugin,
openapiSource,
} from 'fumadocs-openapi/server';
-import { apiRefCollection } from 'fumadocs-mdx:collections/server';
+import { apiRefCollection } from 'collections/server';
import { toFumadocsSource } from 'fumadocs-mdx/runtime/server';
import path from 'node:path';
import { cache } from 'react';
diff --git a/apps/public/src/lib/source.ts b/apps/public/src/lib/source.ts
index e05649553..1f3c874d4 100644
--- a/apps/public/src/lib/source.ts
+++ b/apps/public/src/lib/source.ts
@@ -6,7 +6,7 @@ import {
docs,
guideCollection,
pageCollection,
-} from 'fumadocs-mdx:collections/server';
+} from 'collections/server';
import { type InferPageType, loader } from 'fumadocs-core/source';
import { lucideIconsPlugin } from 'fumadocs-core/source/lucide-icons';
import { toFumadocsSource } from 'fumadocs-mdx/runtime/server';
diff --git a/apps/public/tsconfig.json b/apps/public/tsconfig.json
index 77775fb39..759db9834 100644
--- a/apps/public/tsconfig.json
+++ b/apps/public/tsconfig.json
@@ -23,7 +23,7 @@
"@/*": [
"./src/*"
],
- "fumadocs-mdx:collections/*": [
+ "collections/*": [
".source/*"
]
},