bluephaleth: yesteday the primate web machine automatically redeployed
blueis that configured somewhere?
bluealso hi
bluealso, we need to change the deployment branch to 0.38, I accidently floated the unready 0.39 post
blueI edited the Container image with --branch=0.38 on the git clone, but that did nothing
phalethhi blue
phalethno, I did the redeployment last evening
blueoh ok, that makes sense
phalethI'm trying deno for the primate website
blueI took out the 0.39 post for now so we don't need to change the branch, although technically speaking the docs contain some changes
blueI hope that by 0.39, it'll be all managed by repopack so I could quickly change that, and I do prefer we stay on tsgo for now
blueI mean by 0.40*
phalethyeah, we should stay on tsgo
phalethdo you know if this error https://upaste.de/raw/TbM comes from rcompat are would you be able to fix it?
bluegenerally speaking until I "branch", I prefer the website to be on master, but after branching and concentrating on breaking stuff, I usually have the website point to the latest version
blueso that should be easy with RP
bluelet me look
bluehm, that feels like deno not recognising that as a node import
blueyou know, the differences between the frontends are staggering
bluean angular app is 3.3mb, react 1.1m, svelte clocks in at 458K
blueand I do have @lucide/svelte in svelte which I don't in react/angular, that is a hugebutt icon library, not sure how much of it ends up in the bundle
bluereally I should check
phalethyeah, the website is fine, the blog page responds fast now
blueso without lucide, deno is 436K
phalethright, I wish there was client side framework that was small
bluebun is same
bluenode is 508K, ew
bluewell I guess that answers the question, node pulls in busboy and ws
blueyou'd really expect a runtime in 2026 to support websockets and formdata properly
bluebut still, 436K is way too much
phalethif it's server side bundle then I don't care
bluelet me check the website, it should be much large b/c of shiki
bluelarger*
blueoof, 15M
blueI feel like there's room for optimisation there, this can't be all the markdown files. I think it's shiki mostly
bluein dev mode though, the server is 4.7M which is still too much
bluethe docs dir is 736.0 KiB
blueI guess that compiles to a lot of HTML?
blueso an idea I have for the website so it's faster in dev mode, is to not bundle in the .md files, but import from source directly
bluethat also means esbuild doesn't need to recreate 4.7M when I change a single md
blueideally really, in dev mode the server.js should be tiny
blueso basically in the end it's all in memory, right. whether it's a 4.7 file or the different md imports held by esbuild
bluebut the point being, if you change a single md, esbuild should immediately recompile it only
blueanother cool idea would be to compile-on-demand, that would also speed up dev mode
blueso if I never access /docs/i18n, it doesn't get compiled, no idea how to do that though
phalethare .md files currently bundled and the html is generated at runtime per request?
bluewe technically don't really need node/deno/bun to run it
bluejust to build it
phalethyeah, that'd be great
blueit'll just be a bunch of html files
bluethat nginx can serve
blueI don't know how fetch navigation would then work, but maybe it's not necessary
bluethe delta between loading the entire html page, essentially if woff/css is externalised, vs loading 'just' the md content as html in json, isn't very big
bluewe would need a bit of dynamics, for theme change (probably localstorage again?)
phalethyeah, that's the thing, client side rendering would always result in flash
blueya
bluetechnically could compile both dark and light separately, and have nginx deliver one based on the cookie? is that a thing? I dunno
phalethnginx can read headers and decide on paths based on that, the web browser could store theme to local storage and set a custom header
phalethbut that'd require nginx specific configuration
bluethat's great, then potentially we could solve that
phalethI think it's just better not to bother storing the theme, but always take whatever theme the browser is set to, the theme switch can still remain on the website
phalethbut does the browser send that information on every request? no clue