dash4devs build
The main command. Builds your app and ships it to the CDN.
Updated
On this page
Usage
npx dash4devs build
What it does
- Runs
next build(you can skip this with--skip-build) - Walks and , computing a SHA-256 of every file
The main command. Builds your app and ships it to the CDN.
Updated
npx dash4devs build
next build (you can skip this with --skip-build).next/static/public//v1/cdn/manifest/v1/cdn/uploaded/v1/cdn/activate — a transactional pointer flip in the databaseNEXT_PUBLIC_ASSET_PREFIX into .env.local| Flag | Effect |
|---|---|
--skip-build | Don't run next build; upload whatever is already in .next/ |
--dry-run | Hash files and diff against the CDN, but upload nothing and don't activate |
--no-activate | Upload files but don't flip the active pointer (staging builds) |
╭────────────────────────────────╮
│ DASH4DEVS build · deploy │
╰────────────────────────────────╯
◇ Auth · key ····7f3a · https://api.dashfordevs.com
◇ Building Next.js app
✓ Built .next
◇ Hashing static files
✓ 184 files · 3.24 MB
◇ Diffing against CDN
✓ 12 new · 172 cached · 247 KB to upload
◇ Uploading to edge (12 files)
████████████████████████████████ 100% · 12/12 · 247 KB
✓ All files uploaded
◇ Activating dep_a8f2c1
✓ Live at https://dashfordevs.nyc3.cdn.digitaloceanspaces.com/cdn/orgs/org_...
╭────────────────────────────────────────────╮
│ Deploy successful │
│ deploy dep_a8f2c1 │
│ saved 2.99 MB via dedup │
╰────────────────────────────────────────────╯
# .github/workflows/deploy.yml
- name: Deploy storefront
env:
DASH4DEVS_API_KEY: ${{ secrets.DASH4DEVS_API_KEY }}
run: npx dash4devs build