From d8722a82741b9532b643d77a9bc905910a7e48f0 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Mon, 1 Sep 2025 22:18:48 +0200 Subject: [PATCH] Clean NEXT_PUBLIC_FIREBASE_ENV --- .env.example | 2 ++ dev.sh | 2 +- kill.sh | 6 ++++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 kill.sh diff --git a/.env.example b/.env.example index 3bcb404..e217bcc 100644 --- a/.env.example +++ b/.env.example @@ -17,3 +17,5 @@ EMAIL_FROM= # Development DATABASE_URL="postgresql://postgres:password@localhost:5432/compass" + +NEXT_PUBLIC_API_URL=localhost:8088 \ No newline at end of file diff --git a/dev.sh b/dev.sh index 6d629e6..07c7e01 100755 --- a/dev.sh +++ b/dev.sh @@ -22,6 +22,6 @@ npx dotenv -e .env -- npx concurrently \ -n API,NEXT,TS \ -c white,magenta,cyan \ "cross-env ENV=$NEXT_ENV yarn --cwd=backend/api dev" \ - "cross-env NEXT_PUBLIC_API_URL=localhost:8088 NEXT_PUBLIC_FIREBASE_ENV=$NEXT_ENV yarn --cwd=$DIR serve" \ + "cross-env NEXT_PUBLIC_FIREBASE_ENV=$NEXT_ENV yarn --cwd=$DIR serve" \ "cross-env yarn --cwd=$DIR ts-watch" diff --git a/kill.sh b/kill.sh new file mode 100755 index 0000000..0555099 --- /dev/null +++ b/kill.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +kill $(fuser -k 3000/tcp) +kill $(fuser -k 8088/tcp) + +