BaseUrl support?
See original GitHub issueAs a simplicity project, servor
is excellent and very easy to use.
But do you have plans to support baseUrl
?
Considering that many people will use webpack( options.output.publicPath
or others), I think this option is very useful to support SPA development/preview.
Then we can:
servor dist --baseUrl admin
↓↓
http://localhost:8080/ --> Error 404 or Friendly Tips.
http://localhost:8080/admin/ --> ./dist/index.html
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
baseUrl - TSConfig Option - TypeScript
TSConfig. baseUrl. Customize. Site Colours: ... Community. Get Help · Blog · GitHub Repo · Community Chat · @TypeScript · Stack Overflow ·...
Read more >The Document Base URL element - HTML - MDN Web Docs
The HTML element specifies the base URL to use for all relative URLs in a document. There can be only one element in...
Read more >Support baseUrl (non-relative imports) · Issue #1324 - GitHub
It is a common patten in TypeScript (and create react app) projects to specify a baseUrl in the tsconfig.json to allow for absolute...
Read more >Base URL (BaseURL) - Rocket Software
Defines the base URL used to find the related resources of the HTML widget. The value can be a directory ... BaseURL =...
Read more >Configuring the base URL | Administering Jira applications ...
Still need help? ... The base URL is the URL via which users access Jira applications. It can be any address you select,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @Airkro did you find a nice solution to this at all? I am going to close here because this issue has been inactive for a while now and I have still not found the need for such a feature.
Happy to discuss again if you found a workaround!
Hey all 👋 this is kinda doable now… if you run V4 with
--static
then you can visit nested directories and if they have anindex.html
in then it will be loaded. which means if you setup a project calledpages
for example and then run:Then a browser then visiting
/
will actually serve/<REPO>
with a base url injected. Its not perfect I know but maybe it is workable?Thanks for the suggestion and let me know what you think!