Remove appconfig in favor of runtimeconfig
This commit is contained in:
4
client/stores/notion_pages.js
vendored
4
client/stores/notion_pages.js
vendored
@@ -1,6 +1,6 @@
|
||||
import {defineStore} from 'pinia'
|
||||
import {useContentStore} from "~/composables/stores/useContentStore.js";
|
||||
|
||||
import opnformConfig from "~/opnform.config.js";
|
||||
export const useNotionPagesStore = defineStore('notion_pages', () => {
|
||||
|
||||
const contentStore = useContentStore()
|
||||
@@ -8,7 +8,7 @@ export const useNotionPagesStore = defineStore('notion_pages', () => {
|
||||
const load = (pageId) => {
|
||||
contentStore.startLoading()
|
||||
|
||||
const apiUrl = useAppConfig().notion.worker
|
||||
const apiUrl = opnformConfig.notion.worker
|
||||
return useOpnApi(`${apiUrl}/page/${pageId}`)
|
||||
.then(({data})=> {
|
||||
const val = data.value
|
||||
|
||||
Reference in New Issue
Block a user