Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit f56dd29

Browse files
committed
WIP
1 parent 61154be commit f56dd29

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

commands/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Usage:
2424
2525
Options:
2626
-t, --template [${templates.join(",")}] Specify a template for the created project
27-
-h, --help ${" ".repeat(templates.length)} Prints help message
27+
-h, --help ${" ".repeat(templates.join(",").length)} Prints help message
2828
`;
2929

3030
export default async function (nameArg: string | undefined, template = "react") {

server/mod.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import clientModuleTransformer from "./transformer.ts";
1313
import type { AlephConfig, FetchHandler, Middleware, Route, SSRContext } from "./types.ts";
1414

1515
export type ServerOptions = {
16+
hostname?: string;
1617
port?: number;
1718
certFile?: string;
1819
keyFile?: string;
@@ -275,11 +276,11 @@ export const serve = (options: ServerOptions = {}) => {
275276
e.respondWith(handler(e.request));
276277
});
277278
} else if (!Deno.env.get("ALEPH_APP_MODULES_PORT")) {
278-
const { port = 8080, certFile, keyFile } = options;
279+
const { hostname, port = 8080, certFile, keyFile } = options;
279280
if (certFile && keyFile) {
280-
serveTls(handler, { port, certFile, keyFile });
281+
serveTls(handler, { hostname, port, certFile, keyFile });
281282
} else {
282-
stdServe(handler, { port });
283+
stdServe(handler, { hostname, port });
283284
}
284285
log.info(`Server ready on http://localhost:${port}`);
285286
}

0 commit comments

Comments
 (0)