CartoDB/airship

Serving Airship locally should support a similar path to the CDN

rjimenezda opened this issue · 0 comments

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.