CartoDB / airship

A design library for building Location Intelligence applications.
https://carto.com/developers/airship/
BSD 3-Clause "New" or "Revised" License
75 stars 14 forks source link

Serving Airship locally should support a similar path to the CDN #594

Open rjimenezda opened 5 years ago

rjimenezda commented 5 years ago

During the CARTOFrames 🔱 project we've realized there are some annoying discrepancies between where files are on the CDN and when you load locally.

libs.cartocdn.com/airship-components/<version>/<file> is <hostname>:<port>/packages/components/dist/file

Even worse, on the CDN, it's airship-style, and locally it's styles.

Using serve we can add rewrite rules so you can write urls like:

<hostname>:<port>/airship-components/<version>/<path> and rewrites to the correct file.

There's an open PR that we need for this, unless there is another way of writing rewrite rules that I didn't find.