Support *.localhost subdomains
In the new always-on-node service we’ll want to test things locally with domains that look like this: rudolfs.localhost:3080
👉 Preview
👉 Workflow runs
👉 Branch on GitHub
4 files changed
+115
-3
0fae94fc
→
8f52b2bd
modified src/lib/router.ts
@@ -243,4 +243,4 @@ export function routeToPath(route: Route): string {
|
|
|
|
|
|
| - | |
| + | |
modified src/lib/utils.ts
@@ -203,9 +203,9 @@ export function isMarkdownPath(path: string): boolean {
|
|
|
|
|
|
| - | |
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
modified tests/unit/router.test.ts
@@ -269,3 +269,95 @@ describe("pathToRoute", () => {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified tests/unit/utils.test.ts
@@ -234,3 +234,23 @@ describe("Date Manipulation", () => {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |