From 4c51aaae3cdbfa7bf25cb58b0101709635852778 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Sun, 19 Jan 2025 20:01:19 +0100 Subject: [PATCH] feat: add environment configurations for development and production --- angular.json | 8 +++++++- src/environments/environment.development.ts | 3 +++ src/environments/environment.production.ts | 1 + src/environments/environment.ts | 1 + 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/environments/environment.development.ts create mode 100644 src/environments/environment.production.ts create mode 100644 src/environments/environment.ts diff --git a/angular.json b/angular.json index f8ea81e..1700c3a 100644 --- a/angular.json +++ b/angular.json @@ -50,7 +50,13 @@ "development": { "optimization": false, "extractLicenses": false, - "sourceMap": true + "sourceMap": true, + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.development.ts" + } + ] } }, "defaultConfiguration": "production" diff --git a/src/environments/environment.development.ts b/src/environments/environment.development.ts new file mode 100644 index 0000000..1ef1662 --- /dev/null +++ b/src/environments/environment.development.ts @@ -0,0 +1,3 @@ +export const environment = { + POCKETBASE: 'http://pocketbase-yocs0oko0o8cws44kw8gk8g8.192.168.178.105.sslip.io/' +}; diff --git a/src/environments/environment.production.ts b/src/environments/environment.production.ts new file mode 100644 index 0000000..f274e5e --- /dev/null +++ b/src/environments/environment.production.ts @@ -0,0 +1 @@ +export const environment = {}; diff --git a/src/environments/environment.ts b/src/environments/environment.ts new file mode 100644 index 0000000..f274e5e --- /dev/null +++ b/src/environments/environment.ts @@ -0,0 +1 @@ +export const environment = {};