Skip to content

Commit c260810

Browse files
authored
[Pages] _routes.json location clarification (#24322)
1 parent 8b09e83 commit c260810

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/content/docs/pages/functions/routing.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ banner:
1010
id: pages-migrate-to-workers
1111
---
1212

13-
import { FileTree } from "~/components";
13+
import { Details, FileTree, PagesBuildPresetsTable } from "~/components";
1414

1515
Functions utilize file-based routing. Your `/functions` directory structure determines the designated routes that your Functions will run on. You can create a `/functions` directory with as many levels as needed for your project's use case. Review the following directory:
1616

@@ -143,7 +143,15 @@ Some frameworks (such as [Remix](/pages/framework-guides/deploy-a-remix-site/),
143143

144144
### Create a `_routes.json` file
145145

146-
Create a `_routes.json` file to control when your Function is invoked. It should be placed in the output directory of your project.
146+
Create a `_routes.json` file to control when your Function is invoked. It should be placed in the build directory of your project.
147+
148+
<Details header="Default build directories">
149+
150+
Below are some standard build commands and directories for popular frameworks and tools.
151+
152+
<PagesBuildPresetsTable />
153+
154+
</Details>
147155

148156
This file will include three different properties:
149157

0 commit comments

Comments
 (0)