gordenWong

Results 2 comments of gordenWong

I finally find the solution with HTTP API ```javascript ... this.requestPrefix = `http://${this.options.host}/spaces/${this.options.space}/environments/${this.options.environment}/`; ... sync(query: ContentSyncParam) { const { type, limit, initial, nextPageUrl } = query; let requestUrl = '';...

controller: ```javascript const renderData = { tplData, ssrVo: { daily, refList, wxData }, }; await ctx.ssr('/server/contentDaily/index.jsx', renderData); ``` index.jsx: ```javascript static async getStore({ ssrVo }) { const initState = {...