Skip to main content

Dashboard Hosting on Cloudflare

danger

This guide is outdated and will not work for you.

This is pending a update to the main repo to change how environment variables are loaded.

Prerequisites

Creating your Cloudflare Project

  1. On the Cloudflare dashboard, navigate to the pages section.
  2. Create a new project.
  3. Link an account and repository.

Setup and Build

OptionValue
Framework PresetNone
Build Commandcd backend && npm i --production=false && cd ../dashboard && npm i --production=false && npm run build
Build output directory/dashboard/dist
Root Directory/

Environment Variables

API_URL = https://<your_api_url>.tld
NODE_ENV = production
NODE_VERSION = 16
PYTHON_VERSION = 3.7

Setting a Domain

This stage is optional, you may wish to use the default https://[site]pages.dev url.

This custom domain is for the DASHBOARD, not for the api. Cloudflare Domain