Merge pull request #1613 from xKevIsDev/vercel-fix

refactor: remove success toast and prioritize public domain URL
This commit is contained in:
KevIsDev 2025-04-08 11:56:00 +01:00 committed by GitHub
commit 8c70dd6123
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 24 deletions

View File

@ -224,20 +224,6 @@ export function useNetlifyDeploy() {
source: 'netlify',
});
toast.success(
<div>
Deployed successfully!{' '}
<a
href={deploymentStatus.ssl_url || deploymentStatus.url}
target="_blank"
rel="noopener noreferrer"
className="underline"
>
View site
</a>
</div>,
);
return true;
} catch (error) {
console.error('Deploy error:', error);

View File

@ -174,15 +174,6 @@ export function useVercelDeploy() {
source: 'vercel',
});
toast.success(
<div>
Deployed successfully to Vercel!{' '}
<a href={data.deploy.url} target="_blank" rel="noopener noreferrer" className="underline">
View site
</a>
</div>,
);
return true;
} catch (err) {
console.error('Vercel deploy error:', err);

View File

@ -237,7 +237,9 @@ export async function action({ request }: ActionFunctionArgs) {
deploy: {
id: deployData.id,
state: deploymentState,
url: deploymentUrl || projectInfo.url,
// Return public domain as deploy URL and private domain as fallback.
url: projectInfo.url || deploymentUrl,
},
project: projectInfo,
});