Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
GitHub: https://github.com/verifa/website
One issue we previously had with parsing Markdown with MDsveX was how to get a list of blogs without embedding all the blog content into some JS files... There's quite a few posts online and that's why I figured I'd talk about it here because it seems to be a common pain with SvelteKit and adapter-static. Ultimately what we did was use route parameters and different endpoints for the different requests, which you can see here.
We recently upgraded to SvelteKit and had to migrate according to the design overhaul, and the new +page.server.js has made parsing Markdown a LOT nicer. +page.server.js is explicitly server-only, which for a static site is at build time and now we have removed all endpoints and just use +page.server.js for parsing the Markdown metadata and passing that to the pages. Here's an example +page.server.js and our parser function which is reused across the site. No more endpoints and no more bloated JS files!