Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/documentation/cli/app config #2548

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/famous-spiders-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@equinor/fusion-framework-docs': patch
---

Changing example of app-config.ts in cli docs
2 changes: 1 addition & 1 deletion cookbooks/app-react/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineAppConfig } from '@equinor/fusion-framework-cli';

export default defineAppConfig((_nev) => {
export default defineAppConfig(() => {
return {
endpoints: {
api: {
Expand Down
10 changes: 5 additions & 5 deletions packages/cli/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ the cli will look for a `app.config.{ts,js,json}` which will be provided to the

```ts
// app.config.ts
import { mergeAppConfigs, defineAppConfig } from '@equinor/fusion-framework-cli';
export default defineAppConfig((_env, { base }) =>
mergeAppConfigs(base, {
import { defineAppConfig } from '@equinor/fusion-framework-cli';
export default defineAppConfig() => {
return {
environment: {
fish: 'they can fly?',
shrimp: {
Expand All @@ -30,8 +30,8 @@ export default defineAppConfig((_env, { base }) =>
scopes: ['default'],
},
},
}),
);
},
});
```

You can configure framework services in the `src/config.ts` file.
Expand Down