Prettier format pending files

This commit is contained in:
Builder.io 2025-11-05 04:50:45 +00:00
parent 362c2ca48e
commit f0826bed7e
4 changed files with 20 additions and 15 deletions

View file

@ -63,7 +63,6 @@ export default function Welcome({
setIsVerified(confirmed); setIsVerified(confirmed);
}, [user]); }, [user]);
const handleCheckVerification = async () => { const handleCheckVerification = async () => {
setIsCheckingVerification(true); setIsCheckingVerification(true);
try { try {
@ -183,7 +182,6 @@ export default function Welcome({
} }
}; };
const VerificationIcon = isVerified ? MailCheck : MailWarning; const VerificationIcon = isVerified ? MailCheck : MailWarning;
const verificationBorderClass = isVerified const verificationBorderClass = isVerified
? "border-emerald-500/40" ? "border-emerald-500/40"
@ -393,7 +391,9 @@ export default function Welcome({
) : ( ) : (
<> <>
<p className="text-foreground/80"> <p className="text-foreground/80">
Check your inbox for the AeThex confirmation email we sent during sign-up. Click the verification link in that email to confirm your account. Check your inbox for the AeThex confirmation email we sent
during sign-up. Click the verification link in that email to
confirm your account.
</p> </p>
<ul className="list-disc space-y-1 pl-5 text-foreground/70"> <ul className="list-disc space-y-1 pl-5 text-foreground/70">
<li>Check your email inbox and spam folder.</li> <li>Check your email inbox and spam folder.</li>

View file

@ -4,7 +4,8 @@ const smtpHost = process.env.SMTP_HOST;
const smtpPort = parseInt(process.env.SMTP_PORT || "465", 10); const smtpPort = parseInt(process.env.SMTP_PORT || "465", 10);
const smtpUser = process.env.SMTP_USER; const smtpUser = process.env.SMTP_USER;
const smtpPassword = process.env.SMTP_PASSWORD; const smtpPassword = process.env.SMTP_PASSWORD;
const fromEmail = process.env.SMTP_FROM_EMAIL || smtpUser || "support@aethex.tech"; const fromEmail =
process.env.SMTP_FROM_EMAIL || smtpUser || "support@aethex.tech";
const verifySupportEmail = const verifySupportEmail =
process.env.VERIFY_SUPPORT_EMAIL ?? smtpUser ?? "support@aethex.tech"; process.env.VERIFY_SUPPORT_EMAIL ?? smtpUser ?? "support@aethex.tech";

View file

@ -121,11 +121,14 @@ export function createServer() {
(data as any)?.user?.user_metadata?.full_name ?? fullName ?? null; (data as any)?.user?.user_metadata?.full_name ?? fullName ?? null;
if (!emailService.isConfigured) { if (!emailService.isConfigured) {
console.warn("[API] Email service not configured. SMTP env vars missing:", { console.warn(
hasHost: Boolean(process.env.SMTP_HOST), "[API] Email service not configured. SMTP env vars missing:",
hasUser: Boolean(process.env.SMTP_USER), {
hasPassword: Boolean(process.env.SMTP_PASSWORD), hasHost: Boolean(process.env.SMTP_HOST),
}); hasUser: Boolean(process.env.SMTP_USER),
hasPassword: Boolean(process.env.SMTP_PASSWORD),
},
);
return res.json({ return res.json({
sent: false, sent: false,
verificationUrl: actionLink, verificationUrl: actionLink,
@ -574,11 +577,9 @@ export function createServer() {
typeof payload.content !== "string" || typeof payload.content !== "string" ||
!payload.content.trim() !payload.content.trim()
) { ) {
return res return res.status(400).json({
.status(400) error: "content is required and must be a non-empty string",
.json({ });
error: "content is required and must be a non-empty string",
});
} }
// Validate author_id is a valid UUID format // Validate author_id is a valid UUID format

View file

@ -44,7 +44,10 @@ function expressPlugin(): Plugin {
console.log("[Vite] Express server mounted successfully"); console.log("[Vite] Express server mounted successfully");
} catch (e) { } catch (e) {
console.error("[Vite] Failed to load Express server:", e instanceof Error ? e.message : String(e)); console.error(
"[Vite] Failed to load Express server:",
e instanceof Error ? e.message : String(e),
);
if (e instanceof Error && e.stack) { if (e instanceof Error && e.stack) {
console.error(e.stack); console.error(e.stack);
} }