Unverified Commit cf8a733f authored by Lee Robinson's avatar Lee Robinson Committed by GitHub

docs: mention Middleware on src directory page. (#58193)

Closes https://github.com/vercel/next.js/issues/57923.
parent 36490fe2
...@@ -29,4 +29,5 @@ To use the `src` directory, move the `app` Router folder or `pages` Router folde ...@@ -29,4 +29,5 @@ To use the `src` directory, move the `app` Router folder or `pages` Router folde
> - `.env.*` files should remain in the root of your project. > - `.env.*` files should remain in the root of your project.
> - `src/app` or `src/pages` will be ignored if `app` or `pages` are present in the root directory. > - `src/app` or `src/pages` will be ignored if `app` or `pages` are present in the root directory.
> - If you're using `src`, you'll probably also move other application folders such as `/components` or `/lib`. > - If you're using `src`, you'll probably also move other application folders such as `/components` or `/lib`.
> - If you're using Middleware, ensure it is placed inside the `src` directory.
> - If you're using Tailwind CSS, you'll need to add the `/src` prefix to the `tailwind.config.js` file in the [content section](https://tailwindcss.com/docs/content-configuration). > - If you're using Tailwind CSS, you'll need to add the `/src` prefix to the `tailwind.config.js` file in the [content section](https://tailwindcss.com/docs/content-configuration).
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment