Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large sitemaps time out on Vercel free tier #79

Open
dbredvick opened this issue Mar 29, 2021 · 9 comments
Open

Large sitemaps time out on Vercel free tier #79

dbredvick opened this issue Mar 29, 2021 · 9 comments
Labels
bug Something isn't working

Comments

@dbredvick
Copy link

Summary: Because my Notion document is growing somewhat large, the sitemap request times out under Vercel's free tier (10 seconds).

Notion page: https://www.notion.so/dbredvick/Drew-tech-1e0b275c5ca44b4bbf5dc0e24017f593

CleanShot 2021-03-29 at 09 01 39

I'll be looking into fixing this on my blog, will contribute upstream when I have a reasonable fix.

@dbredvick
Copy link
Author

As an initial fix, bumping the concurrency from concurrency: 4 to concurrency: 5 was sufficient for my blog in get-site-maps.ts.

@transitive-bullshit
Copy link
Owner

Thanks @dbredvick; WIP solution tracking here #83

@transitive-bullshit transitive-bullshit changed the title sitemap times out on Vercel free tier Large sitemaps time out on Vercel free tier Apr 7, 2021
@transitive-bullshit transitive-bullshit added the bug Something isn't working label Apr 7, 2021
@Mvbbb
Copy link

Mvbbb commented Apr 30, 2021

I have the same issue, but "bumping the concurrency from concurrency: 4 to concurrency: 5" don't work for me.
Then I tried to access sitemap.xml locally,but I got 404.
image

image

@dbredvick
Copy link
Author

I ultimately decided to start paying Vercel $20 a month to switch timeouts to 60 seconds. Well worth it for me as I host all my projects on Vercel.

@transitive-bullshit
Copy link
Owner

transitive-bullshit commented Apr 30, 2021

@Mvbbb can you comment on this issue with a link to your site.config.js so I can repro more easily?

@dbredvick nice — that's definitely one solution 😄

#83 should provide a very solid speedup, but I don't have the time at the moment to push it over the finish line.

@dbredvick
Copy link
Author

@transitive-bullshit I might be able to take a look at #83 over the weekend.

@transitive-bullshit
Copy link
Owner

I believe this should be fixed with the recent addition of optional redis caching for pathname to notion page ID lookups.

@octrow
Copy link

octrow commented Nov 3, 2022

Unfortunately sitemap.xml generation outputs a 504 error.
I read that this is due to a 10 second limit on the free plan from vercel, but has been resolved with the redis labs update.
I have caching connected via redis labs (free plan), I checked the operation via monitor in redis-cli as I thought I might have a connection problem, but I can see the image caching working.

I've been reading the @keyvhq/redis documentation and googling solutions and similar errors, but unfortunately haven't been able to find any solutions in the last 5 days.

Perhaps the problem is related to the fact that many pages have manually (via table in notion) changed Slug.

Error page: https://www.boklanov.ru/sitemap.xml

AbdallahEssamGaber pushed a commit to iSchoolTech/TGs-backup that referenced this issue Apr 17, 2024
* refactor: adding mermaid hook

* refactor: adding some type, refactoring get post

* chore: update config

* refactor: refactoring detail page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants