diff --git a/Dockerfile b/Dockerfile index f3a0b2d..bbf42c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,4 @@ FROM node:18-alpine WORKDIR ./build EXPOSE 3000 ENV NODE_ENV=production -RUN ["cat index.js |", "node --input-type=module"] \ No newline at end of file +RUN ["node", "./index.mjs"] \ No newline at end of file diff --git a/build/handler.js b/build/handler.js index 3a534c9..ffb7e72 100644 --- a/build/handler.js +++ b/build/handler.js @@ -26,7 +26,7 @@ function totalist(dir, callback, pre='') { /** * @typedef ParsedURL - * @type {import('.').ParsedURL} + * @type {import('./index.mjs').ParsedURL} */ /** diff --git a/build/index.js b/build/index.mjs similarity index 99% rename from build/index.js rename to build/index.mjs index 1c7339a..29cf953 100644 --- a/build/index.js +++ b/build/index.mjs @@ -107,7 +107,7 @@ class Trouter { /** * @typedef ParsedURL - * @type {import('.').ParsedURL} + * @type {import('./index.mjs').ParsedURL} */ /**