diff --git a/www/content/guides/search-api.mdx b/www/content/guides/search-api.mdx index b41e4c3f2..637f4a24a 100644 --- a/www/content/guides/search-api.mdx +++ b/www/content/guides/search-api.mdx @@ -45,7 +45,7 @@ We recommend using an [API route](https://nextjs.org/docs/api-routes/introductio 1. Create the following API route. -```ts title=api/pages/[index].tsx +```ts title=pages/api/search/[index].tsx import { NextApiRequest, NextApiResponse } from "next" import { DrupalNode } from "next-drupal"