| Environment | URL |
|---|---|
| π Mainnet | https://axelarscan.io |
| π§ͺ Testnet | https://testnet.axelarscan.io |
- Node.js 20.19.4 (specified in
.nvmrc) - Install via nvm
Run the application locally on localhost:3000:
# Switch to the correct Node.js version
nvm use
# Install dependencies
npm ci
# Start development server
npm run dev# Format code with Prettier
npm run format
# Check code formatting
npm run format:check
# Run ESLint and fix issues
npm run lint
# Check for linting issues
npm run lint:check# Run TypeScript type checking (no emit)
npm run tsc
# Build project with TypeScript checking
npm run buildRun the test suite to verify functionality:
# Run all tests
npm test
# Run tests in watch mode
npm run test:watch
# Run tests with coverage report
npm run test:coverageAxelarscan UI uses a straightforward deployment process with Vercel. The project uses a single main branch with feature branches for development.
Environment variables are managed via a single .env file locally and Vercel environment variables for deployments.
# Copy the example and fill in values for your target environment
cp .env.example .env| Environment | Vercel Project |
|---|---|
| Mainnet | axelarscan-mainnet |
| Testnet | axelarscan-testnet |
| Staging | axelarscan-staging |
| Stagenet | axelarscan-stagenet |
| Devnet Amplifier | axelarscan-devnet-amplifier |
Each Vercel project has its own environment variables configured in the Vercel dashboard. Locally, set NEXT_PUBLIC_ENVIRONMENT in your .env to target the desired environment.
-
π¨βπ» Development:
- Create feature branches from
mainusing the naming conventionfeat/*orchore/* - Example:
feat/add-new-chartorchore/update-dependencies
- Create feature branches from
-
π Preview Deployments:
- Vercel automatically creates preview deployments for branches with the
feat/*orchore/*prefix - Preview URLs are available directly in the GitHub UI for each commit
- Branches with other naming patterns (e.g.,
bugfix/*,hotfix/*) will not trigger preview builds
- Vercel automatically creates preview deployments for branches with the
-
π§ͺ Testing:
- Test your changes on the Vercel preview URL
- Make any necessary adjustments in your feature branch
-
π¦ Release:
- Once testing is complete, create a Pull Request to merge your feature branch into
main - After approval and merge to
main, Vercel automatically deploys to all environment projects
- Once testing is complete, create a Pull Request to merge your feature branch into
The repository includes a vercel.deployment.sh script that controls which branches get deployed:
| Status | Condition |
|---|---|
| β Builds proceed when | β’ Branch is main, feat/*, or chore/*β’ AND the Vercel URL doesn't contain "v1" or "v0" |
| π Builds are skipped when | β’ Any other branch naming pattern β’ OR any deployment URL containing "v1" or "v0" (legacy deployments) |
- There is no need for environment-specific branches or manual promotion between environments
- All environments are updated simultaneously when changes are merged to
main