Thilo Maier
@maier.tech
340 followers 200 following 250 posts
Software Engineer from Rotterdam. Mostly frontend with Svelte and SvelteKit.
Posts Media Videos Starter Packs
maier.tech
Yes, I prerender posts and notes and look up last modified dates of posts via GitHub API.

There are also internal APIs from which I read metadata.

I checked and had AI check if I am reading responses twice. As a precaution, I eliminated reusing `response` variables when I call more than one fetch.
maier.tech
Has anyone building with #SvelteKit and `adapter-node` seen this type of error?

Screenshot is a Railway build. Local build works fine. Happens occasionally.

This is a Vercel to Railway migration. Never had this issue on Vercel.

#Svelte
maier.tech
I have not tried prerendering OG images, which would be cool. I only generate the OG image link and hope for the best.
maier.tech
I added OG images to my RSS feed, which was hit or miss. E.g. Inoreader was a miss.

Bluesky picked up the OG image most of the time but not always.

I guess the best thing would be generate once and then serve the generated image.
maier.tech
I did mine with `@vercel/og` in a SvelteKit app. It‘s a little less wiring but the result is mixed because not every platform is patient enough to wait for the OG image to generate, especially when there is a cold start.
maier.tech
I want to faint.
maier.tech
Using `<enhanced:img />` in Markdown in a mdsvex file in combination with code fences that look like Svelte confuses the Vite plugin.

Wrapping `<enhanced:img />` in a Svelte component and import that component into an mdsvex fixes this.

But it's not pretty.
maier.tech
Shoutout to all @fronteers.bsky.social organizers for yesterday's #darkmode conference in Dordrecht.

Great location, fantastic organization and amazing speakers.

⭐⭐⭐⭐⭐

#fronteers
Lanyard with name tag an program on the back.
maier.tech
Brecht @utilitybend.com talking about built-in component gems hidden in plain sight in all modern browsers, like popovers.

So many great browser APIs that are waiting to be used by frontend devs.

#fronteers
maier.tech
For a SvelteKit service I created a preview environment with preview URL active and use that as blueprint for PR environments.

Then I have a URL to click in each PR.
maier.tech
Can’t wait to try this!
maier.tech
🥁
khromov.se
👀 Something very exciting is coming soon if you're using AI with Svelte. Watch this space! #svelte #ai
Reposted by Thilo Maier
bram.us
I'm in Dordrecht (NL) to MC at @fronteers.bsky.social's "Dark Mode" conference later today and tonight.

Even though it's a new location, this feels like coming home, as I've been attending this conference since 2010 (and also spoke at the 2022 edition).

fronteersconf.org
Photo of the swag speakers get: a poster, a t-shirt, a DND sign, and a personalized gift (not pictured).
maier.tech
It's great to see the Frontend community leave Amsterdam for one evening for tonight's @fronteers.bsky.social Dark Mode.

See you this afternoon/evening in Dordrecht!

fronteersconf.org
Fronteers Dark Mode, Friday, October 3rd, Dordrecht
Join us at Cinema de Witt in Dordrecht for our after work conference.
fronteersconf.org
maier.tech
Yes. It adds another layer where things can go wrong and where it's hard to debug.

Preview URLs don't support logs yet and it's very hacky to use separate env vars for preview URLs. And some things I have to configure via dashboard but other things via CLI, it's very inconsistent.
maier.tech
And I could not find a way to create a preview URL other than manually clicking Generate Domain in a deployment.

Can you automate this?
maier.tech
Hosting on Railway, indeed. Deploying to Railway is straight forward, their UI is super polished.

One issue I have is that my registrar does not support apex CNAME records. Need to delegate to Cloudflare.
maier.tech
One nasty package. Nothing that SvelteKit could have smoothed over, I think.

Anyway, this helped me to make up my mind that I want to move forward with adapter-node.

I have to give credit to Vercel for nailing the DX when deploying. Everything just works.

But now I have a Railway to catch.
maier.tech
After trying to move a SvelteKit app from Vercel to Cloudflare, I come to the conclusion that swapping out adapters is more an aspiration than a reality.

The two compute models are too different to quickly move anything that is more than a simple web app.
maier.tech
This improves discoverability a lot 👍
benmccann.com
svelte.dev/packages is now live!

It's a convenient and easily discoverable place to find a sampling of high quality packages in the ecosystem. We hope it will give confidence in the Svelte ecosystem to newcomers and help them get started more easily.
Packages • Svelte
Packages for your Svelte and SvelteKit apps
svelte.dev
maier.tech
I have been trying to wrap my head around CF env variables, too.

Have you figured out how to assign different env vars to non-prod builds?
maier.tech
I don't work on projects where I am constraint to a specific Node version.

As a precaution, I use the latest LTS version everywhere, if possible. But even if I didn't, the chance of something breaking due to different Node versions is minimal.

I used to use NVM but not worth the hassle in my case.
maier.tech
While his behavior is indefensible, it‘s common that managers at his level operate in a bubble and are shielded from any non-bubble feedback.

Good managers have figured out how to burst that bubble.

As an employee, dealing with bubble managers is a nightmare.