Skip to content

Proposal: Prefix Config Option #153

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

Closed
mbleigh opened this issue Feb 28, 2015 · 1 comment
Closed

Proposal: Prefix Config Option #153

mbleigh opened this issue Feb 28, 2015 · 1 comment
Labels

Comments

@mbleigh
Copy link
Contributor

mbleigh commented Feb 28, 2015

I propose that we offer the ability to prefix how Superstatic serves an app. For example:

{
  "prefix":"blog"
}

If a prefix is added (it can be any valid pathname), the root directory is served only from that prefix, so "about.html" gets served at "blog/about.html"

All other configuration options including proxies etc. should apply, however they should also work as if the prefix is the root of the app. So a proxy of "/api" would be available at "/blog/api"

This will be useful for third-party developers using Superstatic as a middleware as it will let them easily mount to a prefix.

As to why it's useful for Divshot's future plans, I'll leave it to speculation. 😄

@rwjblue
Copy link

rwjblue commented Feb 28, 2015

👍 - This would mesh very well with Ember CLI's concept of baseURL that is roughly exactly what you are describing.

hugojosefson added a commit to hugojosefson/superstatic that referenced this issue Oct 16, 2020
@bkendall bkendall closed this as not planned Won't fix, can't repro, duplicate, stale Aug 15, 2022
hugojosefson added a commit to hugojosefson/superstatic that referenced this issue Jun 7, 2023
hugojosefson added a commit to hugojosefson/superstatic that referenced this issue Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants