From 5b8ca353392b405c5bd22ee49d950d412c89b098 Mon Sep 17 00:00:00 2001 From: Omer Sabic Date: Wed, 29 May 2024 20:53:05 +0200 Subject: [PATCH] hopefully final fix --- Dockerfile | 2 +- build/handler.js | 2 +- build/{index.js => index.mjs} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename build/{index.js => index.mjs} (99%) 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} */ /**