Skip to main content

Walrus Sites

To deploy the frontend part of a Sui dApp Starter project to Walrus Sites, do the following:

Preparation​

1. Activate network​

Make sure you started testnet or mainnet locally:

testnet start
# or
mainnet start

2. Top up deployer address​

To get current deployer address:

tsui client active-address
# or
msui client active-address

To get current deployer address balance:

tsui client balance
# or
msui client balance

If it's not enough balance to deploy the site, top up your SUI/WAL balance.

Refer to the Suibase docs for more commands.

Deployment​

pnpm frontend:deploy:walrus:testnet
# or
pnpm frontend:deploy:walrus:mainnet

Configuration​

Thanks to Suibase tools, everything is already configured.

Current Limitations​

  1. Walrus Sites doesn't support the icons declared in the Web Manifest file.
  2. Walrus Sites doesn't support Service Workers in the root scope because it sets its own root-scoped service worker.