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 ArticleCategory: Entwicklung
Webentwicklungg, Programmieren, Software, Server… irgendwie alles was in den Bereich Computer und Entwicklung fällt
Anything regarding web-development
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:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
{ "data": { "posts": { "edges": [ { "node": { "id": "c57e4ea8-072e-4057-974f-bfb369504a57", "createdAt": "2024-10-24T12:21:20Z", "updatedAt": "2024-10-24T14:03:16Z", "title": "Jobangebot mit jemand ohne Namen", "body": "Dies ist ein Jobangebot von jemandem ohne Namen", "expires": true, "expireTime": "2024-10-31T23:00:00Z", "category": { "id": "df84950d-742b-4d07-9f11-04b8964bcb36", "title": "Jobangebote" }, "profile": { "id": "0ce6ee59-4ebf-42cf-9c3a-69cf5e826b0b", "sub": "288686157058342913", "name": "" } } } ] } } } |
aka
|
1 |
"expireTime": "2024-10-31T23:00:00Z", |
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 ArticleA 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 Articlemm_answer_keyallowed: publickey authentication test: ED25519 key is not allowed
Debian 12. After a long time I’ve installed Debian 12 in a VM again. I used ssh-copy-id to copy the key files to the VM. When I tried logging in, I still had to supply my password. What was going on? Well, I’ll spare you the mindfuck and give you the solution. It wasn’t the…
Read ArticleMastodon 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