Skip to content

Commit e22f989

Browse files
Replace references to '/api' in docs
1 parent c3c9e84 commit e22f989

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

api-playground/troubleshooting.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ If your API pages aren't displaying correctly, check these common configuration
6565
<Accordion title="Requests from the API Playground don't work">
6666
If you have a custom domain configured, this could be an issue with your reverse proxy. By
6767
default, requests made via the API Playground start with a `POST` request to the
68-
`/api/request` path on the docs site. If your reverse proxy is configured to only allow `GET`
68+
`/_mintlify/api/request` path on the docs site. If your reverse proxy is configured to only allow `GET`
6969
requests, then all of these requests will fail. To fix this, configure your reverse proxy to
70-
allow `POST` requests to the `/api/request` path.
70+
allow `POST` requests to the `/_mintlify/api/request` path.
7171

7272
Alternatively, if your reverse proxy prevents you from accepting `POST` requests, you can configure Mintlify to send requests directly to your backend with the `api.playground.proxy` setting in the `docs.json`, as described in the [settings documentation](/settings#param-proxy). When using this configuration, you will need to configure CORS on your server since requests will come directly from users' browsers rather than through your proxy.
7373
</Accordion>

snippets/vercel-json-generator.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ export const VercelJsonGenerator = () => {
44

55
const vercelConfig = {
66
rewrites: [
7+
{
8+
source: "/_mintlify/api/request",
9+
destination: `https://${subdomain}.mintlify.app/_mintlify/api/request`
10+
},
711
{
812
source: "/api/request",
9-
destination: `https://${subdomain}.mintlify.app/api/request`
13+
destination: `https://${subdomain}.mintlify.app/_mintlify/api/request`
1014
},
1115
{
1216
source: `/${subdirectory}`,

0 commit comments

Comments
 (0)