From e22f989742f8bdcc3a4ec38825e64ccde72a1fb8 Mon Sep 17 00:00:00 2001 From: Ricardo Nunez <113212961+ricardonunez-io@users.noreply.github.com> Date: Tue, 16 Sep 2025 16:42:57 -0700 Subject: [PATCH] Replace references to '/api' in docs --- api-playground/troubleshooting.mdx | 4 ++-- snippets/vercel-json-generator.mdx | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/api-playground/troubleshooting.mdx b/api-playground/troubleshooting.mdx index 1eb0f19c2..e66147844 100644 --- a/api-playground/troubleshooting.mdx +++ b/api-playground/troubleshooting.mdx @@ -65,9 +65,9 @@ If your API pages aren't displaying correctly, check these common configuration If you have a custom domain configured, this could be an issue with your reverse proxy. By default, requests made via the API Playground start with a `POST` request to the - `/api/request` path on the docs site. If your reverse proxy is configured to only allow `GET` + `/_mintlify/api/request` path on the docs site. If your reverse proxy is configured to only allow `GET` requests, then all of these requests will fail. To fix this, configure your reverse proxy to - allow `POST` requests to the `/api/request` path. + allow `POST` requests to the `/_mintlify/api/request` path. 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. diff --git a/snippets/vercel-json-generator.mdx b/snippets/vercel-json-generator.mdx index e6c61100d..60491ea66 100644 --- a/snippets/vercel-json-generator.mdx +++ b/snippets/vercel-json-generator.mdx @@ -4,9 +4,13 @@ export const VercelJsonGenerator = () => { const vercelConfig = { rewrites: [ + { + source: "/_mintlify/api/request", + destination: `https://${subdomain}.mintlify.app/_mintlify/api/request` + }, { source: "/api/request", - destination: `https://${subdomain}.mintlify.app/api/request` + destination: `https://${subdomain}.mintlify.app/_mintlify/api/request` }, { source: `/${subdirectory}`,