Prettier format pending files
This commit is contained in:
parent
362c2ca48e
commit
f0826bed7e
4 changed files with 20 additions and 15 deletions
|
|
@ -63,7 +63,6 @@ export default function Welcome({
|
|||
setIsVerified(confirmed);
|
||||
}, [user]);
|
||||
|
||||
|
||||
const handleCheckVerification = async () => {
|
||||
setIsCheckingVerification(true);
|
||||
try {
|
||||
|
|
@ -183,7 +182,6 @@ export default function Welcome({
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
const VerificationIcon = isVerified ? MailCheck : MailWarning;
|
||||
const verificationBorderClass = isVerified
|
||||
? "border-emerald-500/40"
|
||||
|
|
@ -393,7 +391,9 @@ export default function Welcome({
|
|||
) : (
|
||||
<>
|
||||
<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>
|
||||
<ul className="list-disc space-y-1 pl-5 text-foreground/70">
|
||||
<li>Check your email inbox and spam folder.</li>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@ const smtpHost = process.env.SMTP_HOST;
|
|||
const smtpPort = parseInt(process.env.SMTP_PORT || "465", 10);
|
||||
const smtpUser = process.env.SMTP_USER;
|
||||
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 =
|
||||
process.env.VERIFY_SUPPORT_EMAIL ?? smtpUser ?? "support@aethex.tech";
|
||||
|
||||
|
|
|
|||
|
|
@ -121,11 +121,14 @@ export function createServer() {
|
|||
(data as any)?.user?.user_metadata?.full_name ?? fullName ?? null;
|
||||
|
||||
if (!emailService.isConfigured) {
|
||||
console.warn("[API] Email service not configured. SMTP env vars missing:", {
|
||||
hasHost: Boolean(process.env.SMTP_HOST),
|
||||
hasUser: Boolean(process.env.SMTP_USER),
|
||||
hasPassword: Boolean(process.env.SMTP_PASSWORD),
|
||||
});
|
||||
console.warn(
|
||||
"[API] Email service not configured. SMTP env vars missing:",
|
||||
{
|
||||
hasHost: Boolean(process.env.SMTP_HOST),
|
||||
hasUser: Boolean(process.env.SMTP_USER),
|
||||
hasPassword: Boolean(process.env.SMTP_PASSWORD),
|
||||
},
|
||||
);
|
||||
return res.json({
|
||||
sent: false,
|
||||
verificationUrl: actionLink,
|
||||
|
|
@ -574,11 +577,9 @@ export function createServer() {
|
|||
typeof payload.content !== "string" ||
|
||||
!payload.content.trim()
|
||||
) {
|
||||
return res
|
||||
.status(400)
|
||||
.json({
|
||||
error: "content is required and must be a non-empty string",
|
||||
});
|
||||
return res.status(400).json({
|
||||
error: "content is required and must be a non-empty string",
|
||||
});
|
||||
}
|
||||
|
||||
// Validate author_id is a valid UUID format
|
||||
|
|
|
|||
|
|
@ -44,7 +44,10 @@ function expressPlugin(): Plugin {
|
|||
|
||||
console.log("[Vite] Express server mounted successfully");
|
||||
} 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) {
|
||||
console.error(e.stack);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue