Change urls

urls
Max Ehrlicher-Schmidt 4 years ago
parent ca11ae2263
commit 2695711711

@ -54,3 +54,9 @@ This Information has to be passed to the cell components dynamically which is on
</app-cell>
```
We can't pass it in an other form, else it would not be possible to pass a value, that is deeper in the data object than the first level (like insuranceData.billing), which is why the data has to be flattened to add it dynamically to a table or data-page.
### Where to change the urls
If the backend url changes, it has to be changed in the following files:
- ./src/environments/
- ./apollo.config.js for autocompletion when writing queries etc.
- ./codegen.yml for graphQL codegen (to generate schema, types etc.)

@ -3,7 +3,7 @@ module.exports = {
excludes: ['src/generated/*'], // ignore the generated files
service: {
name: "flotte_project",
url: "http://173.212.197.169:4000/graphql"
url: "https://flotte.duckdns.org/graphqldev"
}
}
};

@ -1,6 +1,6 @@
overwrite: true
watch: true
schema: "http://173.212.197.169:4002/graphql"
schema: "https://flotte.duckdns.org/graphqldev"
documents: "src/app/graphqlOperations/**/*.graphql"
generates:
src/generated/graphql.ts:

@ -1,10 +1,9 @@
fragment PersonFields on Person {
id
name
firstName
isLocked
id
name
firstName
isLocked
isLockedByMe
lockedBy
lockedUntil
}
}

@ -1,5 +1,5 @@
export const environment = {
production: true,
apiUrl: "http://173.212.197.169:4000",
authUrl: "http://173.212.197.169:8080"
apiUrl: "https://flotte.duckdns.org/graphql", // graphql api url
authUrl: "https://flotte.duckdns.org/user-management" // user server url
};

Loading…
Cancel
Save