Configure Using Cloudflare Workers

#

White Label Documentation Using Cloudflare Workers

Cloudflare Workers allow you to serve your Docstar documentation from a custom endpoint path.

Example:

https://yourdomain.com/help


#

When to Use This Method

Use this method when you want your documentation to open from a path instead of a subdomain.

Example:

  • yourdomain.com/help

  • yourdomain.com/docs


#

Step 1: Add Domain in Docstar

Go to:

settings → Domain

Add your custom domain and endpoint.

Example:

yourdomain.com/help


Screenshot 2026-05-27 at 1.09.27 PM.png
#

Step 2: Get the Worker Code

Get the Worker code from the View Code option



#

Step 3: Open Worker Routes in Cloudflare

Inside Cloudflare:

Workers & Pages → Worker Routes

Create a new route.

Example:

yourdomain.com/help/*

worker.png
#

Step 4: Create a Worker

Go to:

Workers & Pages → Create Application

Create a new Worker.


manageWorkers.png
#

Step 5: Create Application

createApplication.png
#

Step 6: Open Quick Edit

After creating the Worker:

  • Open the Worker

  • Click Quick Edit

editWorker.png
#

Step 6: Paste the code

Replace the default Worker code with the generated code from Docstar

editWorkerCode.png

#

Variable Reference

Variable

Description

your_endpoint

Your endpoint path

your_collection_id

Your Docstar collection ID

your_custom_domain

Your custom domain


#

Final Result

After setup:

  • Your documentation will open from your custom endpoint path.

  • Users will not see the default Docstar URL.

  • You can fully white label your documentation experience.