Skip to content

Commit 9ac8fe7

Browse files
#CyberFraudBountyHunters
1 parent d9ad56d commit 9ac8fe7

File tree

14 files changed

+11
-342
lines changed

14 files changed

+11
-342
lines changed

LICENSE

Lines changed: 0 additions & 339 deletions
This file was deleted.

content/pages/platform/functions/8_Function examples/_index.md renamed to content/pages/platform/functions/Function-examples/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
type: overview
3-
hideChildren: true
43
pcx-content-type: navigation
54
title: Functions examples
65
weight: 8
File renamed without changes.

content/pages/platform/functions/8_Function examples/cors-headers.md renamed to content/pages/platform/functions/Function-examples/cors-headers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ weight: 1002
99
layout: example
1010
---
1111

12+
This example is a snippet from our Cloudflare Pages Template repo.
1213

1314
```js
1415
---
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

content/pages/platform/functions/1_get-started.md renamed to content/pages/platform/functions/get-started.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,19 @@ weight: 1
1010

1111
Cloudflare Workers provides a serverless [execution environment](https://www.cloudflare.com/en-gb/learning/serverless/what-is-serverless/) that allows you to create entirely new applications or augment existing ones without configuring or maintaining infrastructure.
1212

13-
Previously, you could only add dynamic functionality to your Pages site by manually deploying a Worker using Wrangler, which meant that your application is written across both Pages and Workers. Functions allow you to leverage the Workers platform directly from within a Pages project by utilizing a project's filesystem convention. This enables you to deploy your entire site – both its static and dynamic content – when you `git push`.
13+
Previously, you could only add dynamic functionality to your Pages site by manually deploying a Worker using Wrangler, which meant that your application is written across both Pages and Workers.
14+
15+
Functions allow you to leverage the Workers platform directly from within a Pages project by utilizing a project's filesystem convention. In addition, Functions enable you to deploy your entire site – static and dynamic content – when you `git push`.
16+
17+
{{<Aside type="note" header="Functions is currently in beta">}}
18+
You can track current issues that the Pages team is fixing in Known issues. Let us know any unreported issues by posting in the Cloudflare Developers Discord.
19+
{{</Aside>}}
1420

1521
## Setup
1622

17-
To get started, create a `/functions` directory at the root of your project. Writing your Functions files in this directory will automatically generate a Worker with custom functionality at the predesignated routes.
23+
To get started, create a `/functions` directory at the root of your project. Writing your Functions files in this directory automatically generates a Worker with custom functionality at the predesignated routes.
24+
25+
Now that you have your `/functions` directory setup, get started [writing your first function](/pages/platform/functions/first-function/)
1826

1927
## Demo
2028

File renamed without changes.

0 commit comments

Comments
 (0)