Remix JS: Does Remix use process.env or import.meta.env?

Does Remix use vite’s import.meta.env or process.env? The answer is, both. However it’s better to rely on vite’s import.meta.env because of 2 things: 1. Only VITE_ prefixed environment variables are imported 2. It’s also available in the non-SSR context, while process.env is a NODE thing only and not propagated to the browser. So what does…

Read Article

Uncaught RangeError: date value is not finite in DateTimeFormat.format()

Playing with Flowbite React and their Datepicker component, I had data coming from the backend in this or similar form:

aka

React is a bit of a cringy special child. Angular, no problemo. Vue, no problemo. Anyhow. I have to set defaultValues in a React-hook-form form, because React is special with controlled and…

Read Article

A list of self-hosted OSS or free PaaS solutions

Kamal https://kamal-deploy.org/ https://github.com/basecamp/kamal +: No central management interface needed, per project configuration -; Uses “kamal-proxy”, not nginx. Kamal-proxy is written in Go and significantly slowerthan nginx, as is Traefic and Caddy. Coolify https://coolify.io https://github.com/coollabsio/coolify +: Nice looking UI and has continuous integration -: Requires 2CPU 2GB RAM and 30GB per node for the UI alone.…

Read Article

Mastodon ohne Gendern und mit 5000 statt 500 Zeichenbeschränkung

Mich stĂśrt bei Mastodon diese Cancel Culture und auch und vor allem das Gendern. Das ist einfach eine schreckliche, unleserliche, politisch motivierte Verunstaltung der Sprache. Deshalb habe ich per Hand die Sprachdateien geändert. Außerdem gefällt mir nicht das man nur auf 500 Zeichen beschränkt sein soll bei der Länge der Posts. Darum habe ich die…

Read Article