Comments (6)
I see. So it would explicitly not surface issues related to wrong base path usage (e.g. an accidental reference to toplevel instead of the base path) since the same files would be at root level as well.
from serve.
I would also love this, but not sure if anyone is looking into it :)
from serve.
This can be achieved with a symbolic link. For example, if my public folder is named dist
, I would call:
ln -snf "`pwd`/dist" dist/<basePath> && serve dist
The pwd
call is needed in order to create the link with an absolute path.
from serve.
Hm, maybe Iām misunderstanding what you mean ā the files would still be served without the basePath as part of the URL, right?
from serve.
@hybridherbst They would be served both with and w/o the base path. For testing local deployments (which is what we're trying to achieve), this should be enough.
from serve.
Related Issues (20)
- Remove xsel/clipboard functionality HOT 1
- CORS missing Access-Control-Allow-Methods
- Remove auto redirect
- Set server timezone to UTC
- Directory or file name with "#" or "?" does not work properly
- Do not serve hidden subfolders
- Restore silent mode HOT 2
- `npx serve` throws ENOENT error in [email protected] and newer HOT 1
- serve 14.2.1 CLI arguments issue http to https
- Add cleanUrls option to CLI interface
- IPV6 support
- Publish types for API with npm release
- Node.js 21: "[DEP0040] DeprecationWarning: The `punycode` module is deprecated." HOT 4
- serve didn't work in routing with react-router and vite in production HOT 1
- add --open to the CLI
- Anyway to run npx serve constantly? HOT 3
- `localhost:1234/foo/index.html.html` provokes a 404
- Add a file size limit to etag SHA calculations, fallback to "Last modified" when above this limit.
- Authentication is not available HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serve.