Austin Gil
banner
austingil.com
Austin Gil
@austingil.com
Riding bikes. Writing prose. Righting code.

Open for work: https://austingil.com/hire
Hell yeah. Sick design. Great write up. And the whole, my website was no longer personal due to work stuff really hit home. Love the results
January 9, 2026 at 7:36 PM
Oooh, that would be convenient if it works. Thank you
January 7, 2026 at 7:39 PM
I like the first idea. I came across the second idea on a forum, and it was interesting. Sounds like a fun one, but I don't want to expose an endpoint that can trigger the script. Thanks for the tips.
January 7, 2026 at 7:35 PM
That's a good idea. I had landed on something somewhat similar by moving all the cron tasks to a completely separate app, rather than shoehorning them into svelte.

In any case, that read function was a great tip. Thanks for all these ideas
January 6, 2026 at 11:43 PM
Currently, I'm getting around this issue by registering the js module, rather than the file location. This doesn't support background processes, but it's a decent stop gap. I don't think node is the right place for background tasks anyway. But off the main process would be ideal.
January 6, 2026 at 9:58 PM
If, however, i import the js export and register it with node-cron, it will exist in the AST at build time, and be brought over. The issue is that the file structure changes between Dev and build times such that node-cron cannot locate the file to import.
January 6, 2026 at 9:58 PM
Sure. Im deploying to a node server because I need background tasks to run.

Using node-cron to run these, and there's a feature where tasks can run as background processes if you provide a file path.

As such, node-cron tries to import that file, but it doesn't exist in the build output
January 6, 2026 at 9:54 PM
Sadly, this did not work because it's a JS file. Oh well :/
January 6, 2026 at 6:54 PM
Oh that's clever. I was thinking something along these lines, but didn't know this existed. Thank you, I'll give it a try
January 6, 2026 at 5:42 PM
I can fix him...
January 1, 2026 at 3:13 AM
Love this. Thanks for sharing
December 30, 2025 at 6:17 AM
Should have taken 5 days
December 30, 2025 at 6:13 AM
This is fucking rad! Nice work.

What do you use to block ai bot
December 30, 2025 at 6:07 AM
Havin salad for lunch, y'all!!!
December 28, 2025 at 9:49 PM
Pasta is a salad...?
December 28, 2025 at 7:14 PM
Nachos aren't salad!

Nachos are...

Well, the chips are...corn

Which I guess is veggies...

And I have seen in salad before...

And I guess the cheese sauce could ostensibly be considered a dressing...

What in the Midwest!?

Damn...nacho is salad
December 28, 2025 at 6:06 PM
It means I can write code like this without worrying about rogue inserts or uncaught exceptions
December 24, 2025 at 8:59 PM
Actually, it looks like arktype can be configured to strip undeclared properties:

arktype.io/docs/objects...

Sweet. Still looking for opinions on the two tho :)
ArkType Docs
TypeScript's 1:1 validator, optimized from editor to runtime
arktype.io
December 24, 2025 at 5:55 AM