ethan!
ethan!
Explore posts from servers
NNuxt
Created by ethan! on 6/28/2024 in #❓・help
API route called multiple times
I have a page which calls an API route once:
const { data: guilds } = useFetch("/api/discord/guilds");
const { data: guilds } = useFetch("/api/discord/guilds");
However on the server side it's logging as three separate requests. This is bad because in my server I'm calling an external API and it's getting me ratelimited. Any ideas how to only call my API once?
15 replies
NNuxt
Created by ethan! on 6/25/2024 in #❓・help
Buffer is not defined
Buffer is not defined

at http://localhost:3000/_nuxt/@fs/C:/Users/ethan/Desktop/Projects/watchdog/website/node_modules/.cache/vite/client/deps/postgres.js?v=9ecbf21c:617:14
Buffer is not defined

at http://localhost:3000/_nuxt/@fs/C:/Users/ethan/Desktop/Projects/watchdog/website/node_modules/.cache/vite/client/deps/postgres.js?v=9ecbf21c:617:14
20 replies
NNuxt
Created by ethan! on 6/23/2024 in #❓・help
Pages directory
If i want to create a page specific component do i have to use the components folder? like there's no way to create the component in the pages directory with the page itself
19 replies
NNuxt
Created by ethan! on 6/23/2024 in #❓・help
eslint file not checking itself
How do I make my eslint.config.mjs file check for eslint erorrs in its own file?
1 replies