vercel / serve-handler

The foundation of `serve`

Home Page:https://npmjs.com/serve-handler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

✨ Configure base path via CLI option

jd-solanki opened this issue Β· comments

Hi πŸ‘‹πŸ»

I generally publish my static site under some base path (not directly in root domain). Every time I make a build I have to create a dummy dirs to recreate the subpath environment and serve the site from root to test the site.

Is it possible to provide a base path via CLI option (serve --base "/myapp/") so each file is served like it is in myapp dir.

Thanks.