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

Feature Request: Global path prefix #1671

Open
bmboucher opened this issue Jan 2, 2023 · 0 comments
Open

Feature Request: Global path prefix #1671

bmboucher opened this issue Jan 2, 2023 · 0 comments

Comments

@bmboucher
Copy link

Detailed Description

I'd like to host an instance of this server for a group of us at my LGS to collaborate on a cube; I don't know much about Express so I'm just trying to glue stuff together in Docker Compose. Is it possible to have a "global path prefix" setting so I can host the server at mydomain.com/dr4ft instead of just mydomain.com? Something like a PATH_PREFIX environment variable I could set in the Docker container would be awesome.

Further Information

I tried the standard suggestion of using routing, i.e.

const app = express();
const app_routes = express.Router();
app.use('/dr4ft', app_routes);

// existing routes
app_routes.use(....)

but the landing page was still being generated with some polyfills in the header that didn't have the /dr4ft prefix.

@bmboucher bmboucher changed the title Feature Request: Feature Request: Global path prefix Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant