Skip to content

vechain-energy/react-cloudflare-pages-x-earn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Init

npm install

Dev

npm run dev

This will:

  • Run a local solo node
  • Deploy contracts on it
  • Start website in development mode
  • Start a CloudFlare Worker within the pages
    • with fee delegation

You need to:

  • Add network http://localhost:8669 to VeWorld to make this work

Files

  • dist/config.ts is updated on contract deployments and used for contract access in website

Todo

  • Improve configuration to easier toggle between networks (especially solo/testnet)
  • Streamline environment configuration, to avoid duplication
  • Simplify turbo configuration
  • Create a demo deployment

Deployments

CloudFlare Pages

  • Root dir: apps/website
  • Build command: npm run build
  • Output dir: dist
  • Environment variables must be encrypted (See Bug-Report on CloudFlare)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published