Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions docs/start/guides/cloudflare-workers/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Using [Deploy with Workers][deploy-with-workers] step-by-step wizard is the simp
but requires a GitHub account and authorized access, which may not be applicable in all situations.
For example, this method will not work with GitLab or GitHub Enterprise.

![Screenshot of Deploy with Cloudflare Wizard][image-template-deploy-cloudflare]
![Screenshot of Deploy with Cloudflare Wizard](./assets/template-deploy-cloudflare.jpg "Screenshot of Deploy with Cloudflare Wizard")

The wizard will guide you through deploying a Worker and hooking up a new repo with continuous
deployment through GitHub actions. It will also automatically set up your repository secrets.
Expand Down Expand Up @@ -101,7 +101,7 @@ After you sign in, you can return to the terminal.

Open the browser by pressing the "B" key (e.g. `http://localhost:7071`) and you should see a screen like this:

![Successfully connected to RavenDB welcome screen from Cloudflare][image-template-welcome-unauthenticated]
![Successfully connected to RavenDB welcome screen from Cloudflare](./assets/template-welcome-unauthenticated.jpg "Successfully connected to RavenDB welcome screen from Cloudflare (unauthenticated)")

This means you have successfully connected to your RavenDB database.

Expand Down Expand Up @@ -270,13 +270,11 @@ Once started, the Worker will be running on a localhost address.

Open the browser by pressing the "B" key (e.g. `http://localhost:7071`) and you should see a screen like this:

![Successfully connected to RavenDB welcome screen from Cloudflare][image-template-welcome-authenticated]
![Successfully connected to RavenDB welcome screen from Cloudflare](./assets/template-welcome-authenticated.jpg "Successfully connected to RavenDB welcome screen from Cloudflare (authenticated)")

If you see a green check and the correct connection details, this means you have successfully connected to your RavenDB database.




## Deploying to Production

### Automated Deployment
Expand Down Expand Up @@ -306,12 +304,11 @@ If your Worker account is not yet set up, Wrangler will walk you through the ste
In your Cloudflare Dashboard, the Worker should be deployed.
You can find your Worker URL in the dashboard under "Preview URL" and open it to test the connection is working.

![Preview URL shown in the Cloudflare Worker dashboard][image-cloudflare-worker-preview]
![Preview URL shown in the Cloudflare Worker dashboard](./assets/cloudflare-worker-preview.jpg "Preview URL shown in the Cloudflare Worker dashboard")

If it is not working, verify the Wrangler settings are being applied.



## Using RavenDB in the Worker

The RavenDB Cloudflare template uses the [itty-router package][npm-itty-router] to provide basic routing and middleware support.
Expand All @@ -333,12 +330,20 @@ A document session is opened per-request and accessible through `env.db`.
</TabItem>



## Tutorial Video

Watch our _Using Cloudflare Workers with RavenDB_ tutorial:
&lt;iframe width="560" height="315" src="https://www.youtube.com/embed/qMJfgQicjwk?si=Fxk7alyTQ9bDcf5O" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen&gt;&lt;/iframe&gt;
Watch our _Using Cloudflare Workers with RavenDB_ tutorial:

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/qMJfgQicjwk?si=Fxk7alyTQ9bDcf5O"
title="YouTube video player"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
/>


[cloud-signup]: https://cloud.ravendb.net?utm_source=ravendb_docs&utm_medium=web&utm_campaign=howto_template_cloudflare_worker&utm_content=cloud_signup
Expand All @@ -356,8 +361,3 @@ Watch our _Using Cloudflare Workers with RavenDB_ tutorial:
[gh-workflows]: https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions
[gh-workflows-manual]: https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
[gh-template-repo]: https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-template-repository
[image-template-deploy-cloudflare]: images/template-deploy-cloudflare.jpg "Screenshot of Deploy with Cloudflare Wizard"
[image-template-welcome-unauthenticated]: images/template-welcome-unauthenticated.jpg "Successfully connected to RavenDB welcome screen from Cloudflare (unauthenticated)"
[image-template-welcome-authenticated]: images/template-welcome-authenticated.jpg "Successfully connected to RavenDB welcome screen from Cloudflare (authenticated)"
[image-cloudflare-worker-preview]: images/cloudflare-worker-preview.jpg "Preview URL shown in the Cloudflare Worker dashboard"

Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Using [Deploy with Workers][deploy-with-workers] step-by-step wizard is the simp
but requires a GitHub account and authorized access, which may not be applicable in all situations.
For example, this method will not work with GitLab or GitHub Enterprise.

![Screenshot of Deploy with Cloudflare Wizard][image-template-deploy-cloudflare]
![Screenshot of Deploy with Cloudflare Wizard](./assets/template-deploy-cloudflare.jpg "Screenshot of Deploy with Cloudflare Wizard")

The wizard will guide you through deploying a Worker and hooking up a new repo with continuous
deployment through GitHub actions. It will also automatically set up your repository secrets.
Expand Down Expand Up @@ -101,7 +101,7 @@ After you sign in, you can return to the terminal.

Open the browser by pressing the "B" key (e.g. `http://localhost:7071`) and you should see a screen like this:

![Successfully connected to RavenDB welcome screen from Cloudflare][image-template-welcome-unauthenticated]
![Successfully connected to RavenDB welcome screen from Cloudflare](./assets/template-welcome-unauthenticated.jpg "Successfully connected to RavenDB welcome screen from Cloudflare (unauthenticated)")

This means you have successfully connected to your RavenDB database.

Expand Down Expand Up @@ -270,13 +270,11 @@ Once started, the Worker will be running on a localhost address.

Open the browser by pressing the "B" key (e.g. `http://localhost:7071`) and you should see a screen like this:

![Successfully connected to RavenDB welcome screen from Cloudflare][image-template-welcome-authenticated]
![Successfully connected to RavenDB welcome screen from Cloudflare](./assets/template-welcome-authenticated.jpg "Successfully connected to RavenDB welcome screen from Cloudflare (authenticated)")

If you see a green check and the correct connection details, this means you have successfully connected to your RavenDB database.




## Deploying to Production

### Automated Deployment
Expand Down Expand Up @@ -306,12 +304,11 @@ If your Worker account is not yet set up, Wrangler will walk you through the ste
In your Cloudflare Dashboard, the Worker should be deployed.
You can find your Worker URL in the dashboard under "Preview URL" and open it to test the connection is working.

![Preview URL shown in the Cloudflare Worker dashboard][image-cloudflare-worker-preview]
![Preview URL shown in the Cloudflare Worker dashboard](./assets/cloudflare-worker-preview.jpg "Preview URL shown in the Cloudflare Worker dashboard")

If it is not working, verify the Wrangler settings are being applied.



## Using RavenDB in the Worker

The RavenDB Cloudflare template uses the [itty-router package][npm-itty-router] to provide basic routing and middleware support.
Expand All @@ -333,12 +330,20 @@ A document session is opened per-request and accessible through `env.db`.
</TabItem>



## Tutorial Video

Watch our _Using Cloudflare Workers with RavenDB_ tutorial:
&lt;iframe width="560" height="315" src="https://www.youtube.com/embed/qMJfgQicjwk?si=Fxk7alyTQ9bDcf5O" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen&gt;&lt;/iframe&gt;
Watch our _Using Cloudflare Workers with RavenDB_ tutorial:

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/qMJfgQicjwk?si=Fxk7alyTQ9bDcf5O"
title="YouTube video player"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
/>


[cloud-signup]: https://cloud.ravendb.net?utm_source=ravendb_docs&utm_medium=web&utm_campaign=howto_template_cloudflare_worker&utm_content=cloud_signup
Expand All @@ -356,8 +361,3 @@ Watch our _Using Cloudflare Workers with RavenDB_ tutorial:
[gh-workflows]: https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions
[gh-workflows-manual]: https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
[gh-template-repo]: https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-template-repository
[image-template-deploy-cloudflare]: images/template-deploy-cloudflare.jpg "Screenshot of Deploy with Cloudflare Wizard"
[image-template-welcome-unauthenticated]: images/template-welcome-unauthenticated.jpg "Successfully connected to RavenDB welcome screen from Cloudflare (unauthenticated)"
[image-template-welcome-authenticated]: images/template-welcome-authenticated.jpg "Successfully connected to RavenDB welcome screen from Cloudflare (authenticated)"
[image-cloudflare-worker-preview]: images/cloudflare-worker-preview.jpg "Preview URL shown in the Cloudflare Worker dashboard"

Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Using [Deploy with Workers][deploy-with-workers] step-by-step wizard is the simp
but requires a GitHub account and authorized access, which may not be applicable in all situations.
For example, this method will not work with GitLab or GitHub Enterprise.

![Screenshot of Deploy with Cloudflare Wizard][image-template-deploy-cloudflare]
![Screenshot of Deploy with Cloudflare Wizard](./assets/template-deploy-cloudflare.jpg "Screenshot of Deploy with Cloudflare Wizard")

The wizard will guide you through deploying a Worker and hooking up a new repo with continuous
deployment through GitHub actions. It will also automatically set up your repository secrets.
Expand Down Expand Up @@ -101,7 +101,7 @@ After you sign in, you can return to the terminal.

Open the browser by pressing the "B" key (e.g. `http://localhost:7071`) and you should see a screen like this:

![Successfully connected to RavenDB welcome screen from Cloudflare][image-template-welcome-unauthenticated]
![Successfully connected to RavenDB welcome screen from Cloudflare](./assets/template-welcome-unauthenticated.jpg "Successfully connected to RavenDB welcome screen from Cloudflare (unauthenticated)")

This means you have successfully connected to your RavenDB database.

Expand Down Expand Up @@ -270,13 +270,11 @@ Once started, the Worker will be running on a localhost address.

Open the browser by pressing the "B" key (e.g. `http://localhost:7071`) and you should see a screen like this:

![Successfully connected to RavenDB welcome screen from Cloudflare][image-template-welcome-authenticated]
![Successfully connected to RavenDB welcome screen from Cloudflare](./assets/template-welcome-authenticated.jpg "Successfully connected to RavenDB welcome screen from Cloudflare (authenticated)")

If you see a green check and the correct connection details, this means you have successfully connected to your RavenDB database.




## Deploying to Production

### Automated Deployment
Expand Down Expand Up @@ -306,12 +304,11 @@ If your Worker account is not yet set up, Wrangler will walk you through the ste
In your Cloudflare Dashboard, the Worker should be deployed.
You can find your Worker URL in the dashboard under "Preview URL" and open it to test the connection is working.

![Preview URL shown in the Cloudflare Worker dashboard][image-cloudflare-worker-preview]
![Preview URL shown in the Cloudflare Worker dashboard](./assets/cloudflare-worker-preview.jpg "Preview URL shown in the Cloudflare Worker dashboard")

If it is not working, verify the Wrangler settings are being applied.



## Using RavenDB in the Worker

The RavenDB Cloudflare template uses the [itty-router package][npm-itty-router] to provide basic routing and middleware support.
Expand All @@ -333,12 +330,20 @@ A document session is opened per-request and accessible through `env.db`.
</TabItem>



## Tutorial Video

Watch our _Using Cloudflare Workers with RavenDB_ tutorial:
&lt;iframe width="560" height="315" src="https://www.youtube.com/embed/qMJfgQicjwk?si=Fxk7alyTQ9bDcf5O" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen&gt;&lt;/iframe&gt;
Watch our _Using Cloudflare Workers with RavenDB_ tutorial:

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/qMJfgQicjwk?si=Fxk7alyTQ9bDcf5O"
title="YouTube video player"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
/>


[cloud-signup]: https://cloud.ravendb.net?utm_source=ravendb_docs&utm_medium=web&utm_campaign=howto_template_cloudflare_worker&utm_content=cloud_signup
Expand All @@ -356,8 +361,3 @@ Watch our _Using Cloudflare Workers with RavenDB_ tutorial:
[gh-workflows]: https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions
[gh-workflows-manual]: https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
[gh-template-repo]: https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-template-repository
[image-template-deploy-cloudflare]: images/template-deploy-cloudflare.jpg "Screenshot of Deploy with Cloudflare Wizard"
[image-template-welcome-unauthenticated]: images/template-welcome-unauthenticated.jpg "Successfully connected to RavenDB welcome screen from Cloudflare (unauthenticated)"
[image-template-welcome-authenticated]: images/template-welcome-authenticated.jpg "Successfully connected to RavenDB welcome screen from Cloudflare (authenticated)"
[image-cloudflare-worker-preview]: images/cloudflare-worker-preview.jpg "Preview URL shown in the Cloudflare Worker dashboard"

Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Using [Deploy with Workers][deploy-with-workers] step-by-step wizard is the simp
but requires a GitHub account and authorized access, which may not be applicable in all situations.
For example, this method will not work with GitLab or GitHub Enterprise.

![Screenshot of Deploy with Cloudflare Wizard][image-template-deploy-cloudflare]
![Screenshot of Deploy with Cloudflare Wizard](./assets/template-deploy-cloudflare.jpg "Screenshot of Deploy with Cloudflare Wizard")

The wizard will guide you through deploying a Worker and hooking up a new repo with continuous
deployment through GitHub actions. It will also automatically set up your repository secrets.
Expand Down Expand Up @@ -101,7 +101,7 @@ After you sign in, you can return to the terminal.

Open the browser by pressing the "B" key (e.g. `http://localhost:7071`) and you should see a screen like this:

![Successfully connected to RavenDB welcome screen from Cloudflare][image-template-welcome-unauthenticated]
![Successfully connected to RavenDB welcome screen from Cloudflare](./assets/template-welcome-unauthenticated.jpg "Successfully connected to RavenDB welcome screen from Cloudflare (unauthenticated)")

This means you have successfully connected to your RavenDB database.

Expand Down Expand Up @@ -270,13 +270,11 @@ Once started, the Worker will be running on a localhost address.

Open the browser by pressing the "B" key (e.g. `http://localhost:7071`) and you should see a screen like this:

![Successfully connected to RavenDB welcome screen from Cloudflare][image-template-welcome-authenticated]
![Successfully connected to RavenDB welcome screen from Cloudflare](./assets/template-welcome-authenticated.jpg "Successfully connected to RavenDB welcome screen from Cloudflare (authenticated)")

If you see a green check and the correct connection details, this means you have successfully connected to your RavenDB database.




## Deploying to Production

### Automated Deployment
Expand Down Expand Up @@ -306,12 +304,11 @@ If your Worker account is not yet set up, Wrangler will walk you through the ste
In your Cloudflare Dashboard, the Worker should be deployed.
You can find your Worker URL in the dashboard under "Preview URL" and open it to test the connection is working.

![Preview URL shown in the Cloudflare Worker dashboard][image-cloudflare-worker-preview]
![Preview URL shown in the Cloudflare Worker dashboard](./assets/cloudflare-worker-preview.jpg "Preview URL shown in the Cloudflare Worker dashboard")

If it is not working, verify the Wrangler settings are being applied.



## Using RavenDB in the Worker

The RavenDB Cloudflare template uses the [itty-router package][npm-itty-router] to provide basic routing and middleware support.
Expand All @@ -333,12 +330,20 @@ A document session is opened per-request and accessible through `env.db`.
</TabItem>



## Tutorial Video

Watch our _Using Cloudflare Workers with RavenDB_ tutorial:
&lt;iframe width="560" height="315" src="https://www.youtube.com/embed/qMJfgQicjwk?si=Fxk7alyTQ9bDcf5O" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen&gt;&lt;/iframe&gt;
Watch our _Using Cloudflare Workers with RavenDB_ tutorial:

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/qMJfgQicjwk?si=Fxk7alyTQ9bDcf5O"
title="YouTube video player"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
/>


[cloud-signup]: https://cloud.ravendb.net?utm_source=ravendb_docs&utm_medium=web&utm_campaign=howto_template_cloudflare_worker&utm_content=cloud_signup
Expand All @@ -356,8 +361,3 @@ Watch our _Using Cloudflare Workers with RavenDB_ tutorial:
[gh-workflows]: https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions
[gh-workflows-manual]: https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
[gh-template-repo]: https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-template-repository
[image-template-deploy-cloudflare]: images/template-deploy-cloudflare.jpg "Screenshot of Deploy with Cloudflare Wizard"
[image-template-welcome-unauthenticated]: images/template-welcome-unauthenticated.jpg "Successfully connected to RavenDB welcome screen from Cloudflare (unauthenticated)"
[image-template-welcome-authenticated]: images/template-welcome-authenticated.jpg "Successfully connected to RavenDB welcome screen from Cloudflare (authenticated)"
[image-cloudflare-worker-preview]: images/cloudflare-worker-preview.jpg "Preview URL shown in the Cloudflare Worker dashboard"

Loading