Skip to content

Commit 3326128

Browse files
committed
Update error handling and API rate limit
1 parent 65c5c54 commit 3326128

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

composables/editor.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ export const useEditor = () => {
108108
navigateTo(`/${data.uid}`);
109109
} catch (error) {
110110
loading.value = false;
111+
console.log(error.statusMessage)
111112
toast.add({
112113
title: "Error",
113-
description: error.message,
114+
description: error.statusMessage || error.message,
114115
color: "red",
115116
icon: "i-heroicons-x-circle",
116117
});

nuxt.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default defineNuxtConfig({
2020
routes: {
2121
'/api/*': {
2222
maxRequests: 5,
23-
intervalSeconds: 60,
23+
intervalSeconds: 120,
2424
},
2525
},
2626
},

0 commit comments

Comments
 (0)