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

have an ability to specify "base directory" #694

Open
4 tasks done
jpengelbrecht opened this issue Feb 27, 2024 · 0 comments
Open
4 tasks done

have an ability to specify "base directory" #694

jpengelbrecht opened this issue Feb 27, 2024 · 0 comments
Labels
enhancement: to triage New feature of request pending review by team member

Comments

@jpengelbrecht
Copy link

Clear and concise description of the problem

currently if you build histoire in the index.html for example it has lines of code like , if for instance you want to host his as a sub directory on the same domain it currently breaks.

so for instance if you want to host your histoire on a url like /stories it will look for the above stylesheet in /assets instead of /stories/assets

Suggested solution

add a config property "base url". that allows this to be hosted as a sub domain which will append this value to the base directory.
so with a base url value of "/stories" the still import above becomes /stories/assets/style instead of /assets/style

Alternative

No response

Additional context

No response

Validations

@jpengelbrecht jpengelbrecht added the enhancement: to triage New feature of request pending review by team member label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement: to triage New feature of request pending review by team member
Projects
None yet
Development

No branches or pull requests

1 participant