commit fd71c1fbbd2d1b8833c633c9bf908c764f1135db
parent 416695b81509e2fb6a52b08bd4bc19c470c6a9dd
Author: Katja (ctucx) <git@ctu.cx>
Date: Thu, 17 Apr 2025 15:44:58 +0200
parent 416695b81509e2fb6a52b08bd4bc19c470c6a9dd
Author: Katja (ctucx) <git@ctu.cx>
Date: Thu, 17 Apr 2025 15:44:58 +0200
flake.nix: add devShell
3 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/flake.nix b/flake.nix @@ -25,14 +25,15 @@ devShells = forAllSystems (pkgs: { default = pkgs.mkShell { buildInputs = with pkgs; [ - nodejs nodePackages.pnpm - nodePackages.webpack - nodePackages.webpack-cli - nodePackages.webpack-dev-server + nginx ]; shellHook = '' export NODE_OPTIONS=--openssl-legacy-provider + sed "s?PWD?$(pwd)?g" < ./nginx.conf > /tmp/nginx-oeffisearch.conf + pnpm install + pnpm dev + exit ''; }; });
diff --git a/nginx.conf b/nginx.conf @@ -15,15 +15,15 @@ http { charset utf-8; types { - text/html html; - text/css css; - image/png png; - image/svg+xml svg; - application/javascript js; + text/html html; + text/css css; + image/png png; + image/svg+xml svg; + application/javascript js; } map $vendotarget $vendopath { - default no; + default no; locations '/mob/location/search'; 'location' '/mob/location/details'; journeys '/mob/angebote/fahrplan'; @@ -54,7 +54,7 @@ http { access_log /tmp/nginx.log; - root /home/katja/proj/trainsearch-next/dist; + root PWD/dist; location /db/vehicle-sequence { resolver 8.8.8.8;
diff --git a/package.json b/package.json @@ -7,7 +7,7 @@ "build": "rollup -c", "watch": "rollup -c -w", "dev": "concurrently --kill-others 'pnpm run watch' 'pnpm run start'", - "start": "nginx -c $(pwd)/nginx.conf" + "start": "nginx -c /tmp/nginx-oeffisearch.conf" }, "author": "Katja(ctucx), yuka", "license": "AGPL-3.0",