Skip to content

Commit 549d10d

Browse files
committed
Fix build command
1 parent b759aa2 commit 549d10d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/workers/static-assets/migrate-from-pages.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@ Then, update your configuration file's `main` field to point to the location of
162162

163163
##### Pages Functions with a `functions/` folder
164164

165-
If you use **Pages Functions with a [folder of `functions/`](/pages/functions/)**, you must first compile these functions into a single Worker script with the `wrangler pages functions build` command.
165+
If you use **Pages Functions with a [folder of `functions/`](/pages/functions/)**, you must first compile these functions into a single Worker script with the [`wrangler pages functions build`](/workers/wrangler/commands/#functions-build) command.
166166

167167
<PackageManagers
168168
type="exec"
169169
pkg="wrangler"
170-
args={"pages functions build --ourdir=./dist/worker/"}
170+
args={"pages functions build --outdir=./dist/worker/"}
171171
/>
172172

173173
Although this command will remain available to you to run at any time, we do recommend considering using another framework if you wish to continue to use file-based routing. [HonoX](https://github.com/honojs/honox) is one popular option.

0 commit comments

Comments
 (0)