Setup Admin
With the repository and data storage set up, we can now proceed to create the admin app using Cloudflare Pages.
- Log in to your Cloudflare account.
- Navigate to
Compute (Workers)and selectWorkers & Pages. - Click on the
Createbutton and select thePagestab. - Choose
Connect to Git, select theexample-adminrepository, and clickBegin Setup. - Leave the settings as default, except for setting the
Framework PresettoVue. - Click Save and then Deploy.
Configuration
Once the deployment is complete, follow these steps to set up the runtime configuration and custom domain:
Storage Bindings
To connect the D1 database and R2 storage, follow these steps under the Bindings section by clicking on the + Add button:
| Type | Name | Value |
|---|---|---|
| D1 Database | D1 | example |
| R2 Storage | R2 | example |
| R2 Storage | R2B | auctusdigital |
✨ R2B serves as the primary data storage hub for centralized connectivity.
Variables and Secrets
To configure environment variables and secrets, follow these steps under the Variables and Secrets section by clicking on the + Add button:
| Type | Name | Value |
|---|---|---|
| Plaintext | VITE_UPLOAD | WSRV |
| Plaintext | VITE_SITE | EX |
| Plaintext | VITE_SUPER_ADMIN | super admin email |
| Secret | VITE_OPENAI_API_KEY | ************* |
| Secret | VITE_OPENAI_IMAGE_API_KEY | ************* |
| Secret | VITE_PEXELS_API_KEY | ************* |
| Secret | VITE_UNSPLASH_ACCESS_KEY | ************* |
✨
EX is the shortcode for the example.com site, which will be used to connect to the central site.Finalizing the Setup
After adding all the configurations, you'll need to redeploy the app. Follow these steps:
✨ Configuration! The admin app is now ready.

