From 972814a67a331df719c4cec92d5fa51f946f61dc Mon Sep 17 00:00:00 2001 From: Pierre Vasseur Date: Mon, 25 Nov 2024 17:00:21 +0100 Subject: [PATCH] delete script and update syntax --- nginx.conf | 7 +++++-- scripts/getVersion.js | 5 ----- 2 files changed, 5 insertions(+), 7 deletions(-) delete mode 100644 scripts/getVersion.js diff --git a/nginx.conf b/nginx.conf index b13e731..c2c42a5 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,14 +1,17 @@ server { listen 8080 default_server; server_name /usr/share/nginx/html; + root /usr/share/nginx/html; index index.html; + gzip on; gzip_types text/css application/javascript application/json image/svg+xml; gzip_comp_level 9; - etag on; + + etag on; + location / { try_files $uri $uri/ /index.html; } } - diff --git a/scripts/getVersion.js b/scripts/getVersion.js deleted file mode 100644 index e59f7da..0000000 --- a/scripts/getVersion.js +++ /dev/null @@ -1,5 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const packageJson = JSON.parse(fs.readFileSync(path.resolve(__dirname, "..", "package.json"), "utf8")); -console.log(packageJson.version);