Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.24 KB

File metadata and controls

64 lines (41 loc) · 1.24 KB

Deployment Guide

Prerequisites

  • Node.js v22+
  • Yarn v1
  • Wrangler CLI (npm install -g wrangler@latest)
  • Cloudflare account (for deployment)

Setup

  1. Install dependencies:

    yarn install --ignore-engines
  2. Create a .env file (see .env.local.sample for reference):

    VUE_APP_NETWORK=mainnet
    VUE_APP_TITLE=Radix Explorer
    

    Valid VUE_APP_NETWORK values: mainnet, stokenet, milestonenet, rcnet, releasenet, sandpitnet, localnet

Run Locally

Vue dev server (hot reload)

yarn serve

Cloudflare Pages local preview

Builds the app and serves it locally using Wrangler:

yarn preview

This runs at http://localhost:8788 by default.

Deploy to Cloudflare Pages

  1. Log in to Cloudflare:

    wrangler login
  2. Deploy:

    yarn deploy

    This builds the app and deploys the dist/ directory to the olympia-explorer Cloudflare Pages project.

Notes

  • The build uses NODE_OPTIONS=--openssl-legacy-provider to support the older Webpack version with Node.js 22+.
  • The app connects to Radix gateway endpoints based on the configured VUE_APP_NETWORK value. For mainnet, this is https://olympia-gateway.radixdlt.com.