CLI tool to build an optimized static export of devcon app frontend
node
=18
- httrack
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
source ~/.bashrc
nvm install --lts
node -v
sudo apt install httrack
npm i -g @ethersphere/swarm-cli
git clone https://github.com/w3rkspacelabs/devcon-swarm-exporter.git
cd devcon-swarm-exporter
npm install
npm start
output:
Usage: devcon-static-exporter [options] [command]
CLI tool to build an optimized static export of devcon app frontend
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
clone Clone the website devcon.org using httrack
clone-fresh Deletes existing folder and clones the website devcon.org using httrack
export Build an optimised static export
help [command] display help for command
Clone devcon.org
npm start clone
or to delete existing clones and create a fresh clone
npm start clone-fresh
This clones the website using httrack
locally to the ./output/devcon-local
folder.
npm start export
Running this command should fetch missing resources, optimize the nextjs images and update the relevant urls to make the static export work
Follow the steps in this blogpost to publish the ./output/devcon-local
folder to Swarm and connect it to an ENS domain