anthony
anthony
Explore posts from servers
CDCloudflare Developers
Created by anthony on 3/25/2024 in #workers-help
429 too many requests
I've been getting 429ed recently on URLs in production via my Cloudflare Worker. However, I'm not facing this issue in development. In the error message, I just see the URL requested over and over, like it's trying to redirect, but not. I searched inside this channel before posting and I have changed SSL to Strict (Full). The domain I'm running the worker on is proxied through Cloudflare as the domain is on Cloudflare. I saw something about that. The reference post is https://discord.com/channels/595317990191398933/1197631748390006804 I'm not sure where else to go from there. Any help would be appreciated. Thanks.
2 replies
TTCTheo's Typesafe Cult
Created by anthony on 7/10/2023 in #questions
[Next.js App Router] Dynamic segment 404 on Vercel, but not local production build
Hello! I've been facing an issue on a production/preview Vercel instance of my app. On build, I have generateStaticParams to generate my routes at build time. The expected behavior though is that the routes are to be dynamically generated for future changes with data (i.e. a new date being returned from getDailyTitleDates())
export async function generateStaticParams() {
const dates: string[] = await getDailyTitleDates();

return dates.map((date: string) => ({
date,
}));
}
export async function generateStaticParams() {
const dates: string[] = await getDailyTitleDates();

return dates.map((date: string) => ({
date,
}));
}
This is not the case as I'm getting 404ed on Vercel. However, I did next build and next start locally and the expected behavior is happening. I've tried researching on my own what issue I could be having. I do believe I understand the docs, but there's something I could be missing here. Any help is appreciated!
12 replies