Improve logging and update development server port

Add error handling for notification log insertion and change Vite dev server port from 8080 to 5000.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 853a87ae-e13d-4762-9a69-fbd3990ed527
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
This commit is contained in:
pac7
2025-10-07 15:37:50 +00:00
parent f02ba17760
commit ab05998b58
2 changed files with 6 additions and 2 deletions

View File

@@ -258,7 +258,7 @@ class NotificationService {
.eq('workflow_id', log.workflowId)
.single();
await supabase.from('notification_logs').insert({
const { error: logError } = await supabase.from('notification_logs').insert({
user_id: log.userId,
template_id: template?.id,
novu_transaction_id: log.transactionId,
@@ -266,6 +266,10 @@ class NotificationService {
status: 'sent',
payload: log.payload,
});
if (logError) {
console.error('Error inserting notification log:', logError);
}
} catch (error) {
console.error('Error logging notification:', error);
}

View File

@@ -7,7 +7,7 @@ import { componentTagger } from "lovable-tagger";
export default defineConfig(({ mode }) => ({
server: {
host: "::",
port: 8080,
port: 5000,
},
plugins: [react(), mode === "development" && componentTagger()].filter(Boolean),
resolve: {