Skip to content

Commit

Permalink
Add toast
Browse files Browse the repository at this point in the history
  • Loading branch information
istarkov committed Jul 26, 2024
1 parent f52b1df commit daefe34
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/builder/app/builder/features/topbar/publish.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -429,11 +429,16 @@ const PublishStatic = ({ projectId }: { projectId: Project["id"] }) => {
statusText: "Publishing",
});

await nativeClient.domain.publish.mutate({
const result = await nativeClient.domain.publish.mutate({
projectId,
destination: "static",
});

if (result.success === false) {
toast.error(result.error);
return;
}

const timeout = 10000;

// Repeat few more times than timeout
Expand Down

0 comments on commit daefe34

Please sign in to comment.