diff --git a/packages/builder/src/pages/builder/portal/apps/index.svelte b/packages/builder/src/pages/builder/portal/apps/index.svelte index 9802d5ec36..ac588cdf7d 100644 --- a/packages/builder/src/pages/builder/portal/apps/index.svelte +++ b/packages/builder/src/pages/builder/portal/apps/index.svelte @@ -104,9 +104,10 @@ } const exportApp = app => { + const id = app.deployed ? app.prodId : app.devId try { download( - `/api/backups/export?appId=${app.appId}&appname=${encodeURIComponent( + `/api/backups/export?appId=${id}&appname=${encodeURIComponent( app.name )}` )