Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rjimenezda opened this issue Apr 3, 2019 · 0 comments
Open
Labels
CHORE ♻️ A routine task REQUEST:question: A generic request/suggestion or question

Comments

@rjimenezda
Copy link
Contributor

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.

@rjimenezda rjimenezda added CHORE ♻️ A routine task REQUEST:question: A generic request/suggestion or question labels Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CHORE ♻️ A routine task REQUEST:question: A generic request/suggestion or question
Projects
None yet
Development

No branches or pull requests

1 participant