Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 2441591

Browse files
antriverdanbucholtz
authored andcommitted
feature(dev-server): add support for path-based routing
* feature(dev-server): add fallback route to /index.html to support path based routing * fix(dev-server): Fix ion-dev css/js when loaded with a path * remove injector changes
1 parent 0db423a commit 2441591

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/dev-server/http-server.ts

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ export function createHttpServer(config: ServeConfig): express.Application {
4646
app.get('/cordova_plugins.js', servePlatformResource);
4747
app.get('/plugins/*', servePlatformResource);
4848

49+
// Fallback route - send to index.html to allow deeplinker to handle path.
50+
app.use(serveIndex);
51+
4952
if (config.useProxy) {
5053
setupProxies(app);
5154
}

0 commit comments

Comments
 (0)