add support for configuring a base path #1116
Labels
alpha.6
breaking
CLI
Content as Data
documentation
Greenwood specific docs
feature
New feature or request
Plugins
Greenwood Plugins
v0.29.0
Milestone
Type of Change
Feature
Summary
It is not uncommon for websites to be deployed at an "offset" URL from the root domain. For instance
www.example.com/xyz
. Most notably, GitHub Pages does this for project based site, as the full URL is a concatenation of the github.com domain and a path segment based on the repository name, and so<repository>
is effectively the web root in this case.Thus, it would require all assets to be relative that path segment, e.g.
/<repository>/header.js
/<repository>/assers/logo.png
Details
This should be doable but would require a few different parts of the system working together
<link>
,<script>
, etc tags accordingly when bundlingI wonder if this is something that setting a
<base href="...">
tag could help with?The text was updated successfully, but these errors were encountered: