migrate-to-nuxt-useappconfig (#263)
* migrate-to-nuxt-useappconfig * defineAppConfig --------- Co-authored-by: Forms Dev <chirag+new@notionforms.io>
This commit is contained in:
@@ -152,7 +152,7 @@ export default {
|
||||
appStore: useAppStore(),
|
||||
formsStore: useFormsStore(),
|
||||
workspacesStore: useWorkspacesStore(),
|
||||
config: useConfig(),
|
||||
config: useAppConfig(),
|
||||
user: computed(() => authStore.user),
|
||||
isIframe: useIsIframe(),
|
||||
}
|
||||
|
||||
@@ -16,11 +16,11 @@ export default {
|
||||
},
|
||||
|
||||
async setup(props) {
|
||||
const apiUrl = useConfig().notion.worker
|
||||
const apiUrl = useAppConfig().notion.worker
|
||||
const {data} = await useFetch(`${apiUrl}/page/${props.pageId}`)
|
||||
|
||||
return {
|
||||
apiUrl: useConfig().notion.worker,
|
||||
apiUrl: useAppConfig().notion.worker,
|
||||
blockMap: data,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ export default {
|
||||
},
|
||||
|
||||
computed: {
|
||||
zapierUrl: () => useConfig().links.zapier_integration
|
||||
zapierUrl: () => useAppConfig().links.zapier_integration
|
||||
},
|
||||
|
||||
watch: {
|
||||
|
||||
@@ -108,7 +108,7 @@ export default {
|
||||
|
||||
computed: {
|
||||
aiFeaturesEnabled () {
|
||||
return useConfig().ai_features_enabled
|
||||
return useAppConfig().ai_features_enabled
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user