-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Feature question: strip prefix #457
Comments
I've sorted out what I need to do by adding an env var that lets you just set the PMTiles path to whatever: 1fa5ebe. Obviously only works if you have that path serving a single file. Also, unrelated, but thank you for this awesome project! It was also super easy to build this function and hack on it, I'm impressed by that too! |
Yes, this is the intended solution. Prefix your object keys with the prefix you want.
That could work in your fork but isn't a general-purpose solution. There is an existing |
@aapeliv is re-organizing the objects in your bucket to match your desired URL layout a sufficient solution? I thought a bit about how to configure a prefix-based |
Hey @bdon, yes what I’ve good currently is more than satisfactory for my use case! Yes I agree that it’s not clear how to do it in a sensible way in general, especially since I seem to be one of very few looking for this kind of feature! |
Context: we serve a bunch of stuff from Cloudfront. I'd like to deploy static map tiles under a sub-path like
/maps/tiles/
likehttps://cdn.example.com/maps/tiles/20240918/1/0/1.mvt
. However, at the moment the serverless function doesn't allow doing things (I think I could rename my PMTiles file tomaps/tiles/20240918.pmtiles
in the bucket?).I am probably going to hack in a feature to strip the prefix
/maps/tiles
into a fork based on an env var, but wondering if there is interest in accepting a PR for it and what that would entail?The text was updated successfully, but these errors were encountered: