1
0
Fork 0
freesewing/sites/dev
joostdecock a4f192e090 fix(dev): Load MDX dynamically to reduce the number of routes
Prior to this commit we'd generate a page for each MDX document as that
avoids having to load MDX dynamically (which can be tricky) or through
static props (which causes issues with serialization).

However, Vercel (which hosts for us) has an upper limit on the number of
routes, and because of this extensive documentation, we blew passed it
with this approach.

This changes to a dynamic resolution of MDX content with an async import
in the useEffect hook. This should drastically reduce the number of
routes and make Vercel happy.

I didn't do much digging into the effects of this on SSR. If it turns
out it's causes issues, we'll deal with it at that time.
2023-05-20 13:22:36 +02:00
..
components chore(lab): Fixed issues with next build 2023-05-19 09:22:11 +02:00
hooks chore: More QA fixes for sites 2023-05-19 18:27:36 +02:00
page-templates chore(dev): Fixed some linter warnings 2023-05-17 13:25:57 +02:00
pages fix(dev): Load MDX dynamically to reduce the number of routes 2023-05-20 13:22:36 +02:00
prebuild chore: Adapt sites to recent changes 2022-06-17 12:02:09 +02:00
public chore(shared): Changes to footer 2023-03-26 14:02:19 +02:00
scripts chore(dev): Fix linter warnings in sites/dev 2023-05-19 16:40:15 +02:00
algolia.config.mjs chore: Adapt sites to recent changes 2022-06-17 12:02:09 +02:00
i18n.config.mjs chore: Adapt sites to recent changes 2022-06-17 12:02:09 +02:00
jargon.mjs feat(dev): Ported dev site to named exports 2023-01-29 17:36:15 +01:00
next-i18next.config.js chore: Adapt sites to recent changes 2022-06-17 12:02:09 +02:00
next.config.mjs feat(dev): Ported dev site to new v3 site framework 2023-05-16 10:34:13 +02:00
package.json Merge pull request #3636 from freesewing/joost 2023-05-19 14:36:08 +02:00
postcss.config.js chore: Adapt sites to recent changes 2022-06-17 12:02:09 +02:00
site.config.mjs feat(dev): Ported dev site to new v3 site framework 2023-05-16 10:34:13 +02:00
skip_build.mjs usability fixes for dev 2023-03-08 14:44:42 -06:00
tailwind.config.js chore: Adapt sites to recent changes 2022-06-17 12:02:09 +02:00