medialab / resin-annuaire

Site de l'annuaire des expertises du Réseau d'Ingenieur USPC/SciencesPo
GNU Affero General Public License v3.0
3 stars 0 forks source link

Use a single agent to fetch API on build #46

Closed jillro closed 3 months ago

jillro commented 3 months ago

This use a single HTTP Agent to fetch API on build, preventing node from opening multiple connections, which is not supported by Django development server and cause build to crash.

Also remove use of path.join for building URL. path module sole purpose is to manipulate filesystem paths on both POSIX and Windows (which uses \ separators), but should not be used for URLs.