Skip to content

Commit

Permalink
Add-pages-functions-build-command (#210)
Browse files Browse the repository at this point in the history
* Add  command

* Update .changeset/purple-planets-join.md

Co-authored-by: Pete Bacon Darwin <[email protected]>

* Add sourcemap option

Co-authored-by: Pete Bacon Darwin <[email protected]>
  • Loading branch information
GregBrimble and petebacondarwin authored Jan 7, 2022
1 parent 3bbfd4f commit d381fed
Show file tree
Hide file tree
Showing 2 changed files with 255 additions and 203 deletions.
7 changes: 7 additions & 0 deletions .changeset/purple-planets-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"wrangler": patch
---

Expose `wrangler pages functions build` command, which takes the `functions` folder and compiles it into a single Worker.

This was already done in `wrangler pages dev`, so this change just exposes this build command for use in our build image, or for people who want to do it themselves.
Loading

0 comments on commit d381fed

Please sign in to comment.