Skip to content

Commit

Permalink
fix frontend build
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Busk committed Jan 10, 2025
1 parent 7946191 commit 193a440
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 29 deletions.
32 changes: 4 additions & 28 deletions frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"scripts": []
},
"configurations": {
"dev": {
"remote": {
"budgets": [
{
"type": "initial",
Expand All @@ -63,28 +63,7 @@
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.dev.ts"
}
],
"outputHashing": "all"
},
"poc": {
"budgets": [
{
"type": "initial",
"maximumWarning": "4MB",
"maximumError": "5MB"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kB",
"maximumError": "4kB"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.poc.ts"
"with": "src/environments/environment.remote.ts"
}
],
"outputHashing": "all"
Expand All @@ -100,11 +79,8 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"dev": {
"browserTarget": "possible-x-portal:build:dev"
},
"poc": {
"browserTarget": "possible-x-portal:build:poc"
"remote": {
"browserTarget": "possible-x-portal:build:remote"
},
"local": {
"browserTarget": "possible-x-portal:build:local"
Expand Down
7 changes: 7 additions & 0 deletions frontend/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import com.github.gradle.node.npm.task.NpmTask
import org.yaml.snakeyaml.Yaml

plugins {
id("com.github.node-gradle.node") version "7.0.2"
}

buildscript {
dependencies {
classpath("org.yaml:snakeyaml:1.29")
}
}

node {
version.set("20.16.0") // Specify the Node.js version
npmVersion.set("10.8.2") // Optionally specify the npm version
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/environments/environment.remote.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
export const environment = {
api_url: window.location.origin + "/api/"
api_url: window.location.origin + "/api/",
possible_website_possible_url: "https://www.possible-gaia-x.eu/#possible",
possible_website_url: "https://www.possible-gaia-x.eu/",
possible_website_group_url: "https://www.possible-gaia-x.eu/#verbund",
catalog_url: "https://catalog.dev.possible-x.de/resources/service-offering?locale=en"
};

0 comments on commit 193a440

Please sign in to comment.