question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

As 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lukejacksonncommented, Feb 6, 2020

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!

0reactions
lukejacksonncommented, May 18, 2020

Hey all 👋 this is kinda doable now… if you run V4 with --static then you can visit nested directories and if they have an index.html in then it will be loaded. which means if you setup a project called pages for example and then run:

npx servor gh:<HANDLE>/<REPO> --browse --editor --reload

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found