diff --git a/docs/start/guides/cloudflare-workers/overview.mdx b/docs/start/guides/cloudflare-workers/overview.mdx index b130228a7d..03c61e7767 100644 --- a/docs/start/guides/cloudflare-workers/overview.mdx +++ b/docs/start/guides/cloudflare-workers/overview.mdx @@ -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. @@ -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. @@ -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 @@ -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. @@ -333,12 +330,20 @@ A document session is opened per-request and accessible through `env.db`. - ## Tutorial Video -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></iframe> +Watch our _Using Cloudflare Workers with RavenDB_ tutorial: +