Rename createServer to createHttpServer
Differentiate the http-server's creation function with future create server functions that create other kinds of servers.
This commit is contained in:
parent
03d8872895
commit
7c9ca7c3ae
3 changed files with 7 additions and 7 deletions
|
@ -5,7 +5,7 @@ import { prettify, htmlDocument } from "antihtml";
|
|||
import { pages } from "./pages.js";
|
||||
import type { Page } from "./types.js";
|
||||
import { resolveRefs } from "./utils/resolve-refs.js";
|
||||
import { createServer } from "./utils/http-server.js";
|
||||
import { createHttpServer } from "./utils/http-server.js";
|
||||
|
||||
const srcDir = "build/node";
|
||||
const webDir = "web";
|
||||
|
@ -65,7 +65,7 @@ function build() {
|
|||
|
||||
function serve() {
|
||||
const resources = assembleResources();
|
||||
const server = createServer(
|
||||
const server = createHttpServer(
|
||||
(ref) => {
|
||||
const resource = resources.get(ref);
|
||||
if (resource === undefined)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue