From 9fc2facf35060d93fbc784455fab9f497d06cd8c Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 8 Jun 2021 12:14:49 -0400 Subject: [PATCH] build(striker-ui): add default API URL in .env --- striker-ui/{env.development => .env} | 2 +- striker-ui/Makefile.am | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) rename striker-ui/{env.development => .env} (56%) diff --git a/striker-ui/env.development b/striker-ui/.env similarity index 56% rename from striker-ui/env.development rename to striker-ui/.env index 5e5d3bd0..467dca8b 100644 --- a/striker-ui/env.development +++ b/striker-ui/.env @@ -1,2 +1,2 @@ # Use this to set a different origin -NEXT_PUBLIC_API_URL= +NEXT_PUBLIC_API_URL=/cgi-bin diff --git a/striker-ui/Makefile.am b/striker-ui/Makefile.am index 19ba1c63..7abf9acc 100644 --- a/striker-ui/Makefile.am +++ b/striker-ui/Makefile.am @@ -20,8 +20,6 @@ EXTRA_DIST = $(nextoutdir) out: -@echo "Install node modules (dependencies) prior to building." npm install --no-package-lock --ignore-scripts - -@echo "Generate endpoint prefix." - sed 's@=.*@=/cgi-bin@' .env.local -@echo "Build front-end project." npm run build -@echo "Stage only the build output directory."