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

Task timed out after 10.01 seconds #80

Closed
philffm opened this issue Apr 2, 2021 · 4 comments
Closed

Task timed out after 10.01 seconds #80

philffm opened this issue Apr 2, 2021 · 4 comments

Comments

@philffm
Copy link

philffm commented Apr 2, 2021

Hi @transitive-bullshit

Great project, working super reliable so far 🎉

However now after filling the page with some content, Vercel is constantly throwing me "Task timed out after 10.01 seconds". The only way to update the content right now, is to redeploy. I tried increasing the concurrency value in get-site-maps.ts, but without any luck so far.

It is possible to create new items on the home page - but the urls / new pages are not instantly generated (need to redeploy).

Screenshot 2021-04-02 at 17 28 42

https://www.notion.so/UX-Life-0aac38d9e5994f8aa7d586dec4c6883e

Do you have an idea?

Best, Phil

@transitive-bullshit
Copy link
Owner

Hey @philffm, thanks for the report & the kind words 🙏

The biggest reason it is timing out is due to #58

We're currently doing a lot of unnecessary work each time a new URL alias is fetched to resolve the mapping from URL alias => notion ID.

We can definitely improve this; I'll try to get a workaround in later tonight.

See also #79.

@transitive-bullshit
Copy link
Owner

@philffm as a workaround for now, you can add includeNotionIdInUrls: true to your sitemap.

This will make your non-root site URLs include Notion IDs which will resolve much faster.

@transitive-bullshit
Copy link
Owner

Tracking a WIP solution here: #83

@philffm
Copy link
Author

philffm commented Apr 6, 2021

Awesome! It just works... again! 🎉

AbdallahEssamGaber pushed a commit to iSchoolTech/TGs-backup that referenced this issue Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants