diff --git a/.changeset/famous-spiders-wonder.md b/.changeset/famous-spiders-wonder.md new file mode 100644 index 000000000..3a372fa4a --- /dev/null +++ b/.changeset/famous-spiders-wonder.md @@ -0,0 +1,5 @@ +--- +'@equinor/fusion-framework-docs': patch +--- + +Changing example of app-config.ts in cli docs diff --git a/cookbooks/app-react/app.config.ts b/cookbooks/app-react/app.config.ts index 84d401a4f..66501880c 100644 --- a/cookbooks/app-react/app.config.ts +++ b/cookbooks/app-react/app.config.ts @@ -1,6 +1,6 @@ import { defineAppConfig } from '@equinor/fusion-framework-cli'; -export default defineAppConfig((_nev) => { +export default defineAppConfig(() => { return { endpoints: { api: { diff --git a/packages/cli/docs/configuration.md b/packages/cli/docs/configuration.md index cd43ab01a..a8cb88292 100644 --- a/packages/cli/docs/configuration.md +++ b/packages/cli/docs/configuration.md @@ -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: { @@ -30,8 +30,8 @@ export default defineAppConfig((_env, { base }) => scopes: ['default'], }, }, - }), -); + }, +}); ``` You can configure framework services in the `src/config.ts` file.