belle-energie-checker
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
https://pom421--800270a81a0811f0a366569c3dd06744.web.val.run
C'est un projet Val Town qui permet de checker la dernier fichier pdf des tarifs de la belle énergie et de m'envoyer un mail si jamais il a changé.
- index.http.tsx comporte tous les endpoints
- checkNewTarif.cron.ts est le cron pour vérifier si le fichier des tarifs a changé
- git commit et push
vt push
Dans index.http.tsx, si je laisse le profil TypeScript fonctionnait, avec :
"editor.codeActionsOnSave": { "source.fixAll": "always", "source.organizeImports": "always" },
l'import React est supprimé. Cela provoque des problèmes de lint dans VS Code mais aussi un problème pour Val Town, pour lancer le formulaire.
J'ai changé sur un profil Default pour contourner le problème.
HTTP
- index.http_20250601160838.tsxpom421--33…13.web.val.run
- index.http_20250601160853.tsxpom421--33…13.web.val.run
- index.http_20250601160857.tsxpom421--33…13.web.val.run
- index.http_20250601160900.tsxpom421--34…13.web.val.run
- index.http_20250601210243.tsxpom421--44…13.web.val.run
- index.http_20250601210644.tsxpom421--97…13.web.val.run
- index.http_20250601210648.tsxpom421--97…13.web.val.run
- index.http_20250601210741.tsxpom421--39…13.web.val.run
- index.http_20250601210807.tsxpom421--39…13.web.val.run
- index.http_20250601210808.tsxpom421--39…13.web.val.run
- index.http_20250601211425.tsxpom421--a5…13.web.val.run
- index.http.tsxpom421--80…44.web.val.run