diff --git a/packages/api/src/routes/page/getPageConfig.js b/packages/api/src/routes/page/getPageConfig.js index 6e9d4f8a1..5d5b5b3cf 100644 --- a/packages/api/src/routes/page/getPageConfig.js +++ b/packages/api/src/routes/page/getPageConfig.js @@ -14,6 +14,7 @@ limitations under the License. */ +// TODO: strip auth prop from page before we send it to the client async function getPageConfig({ authorize, readConfigFile }, { pageId }) { const pageConfig = await readConfigFile(`pages/${pageId}/${pageId}.json`); if (pageConfig && authorize(pageConfig)) return pageConfig; diff --git a/packages/cli/src/index.js b/packages/cli/src/index.js index 850c1aa84..f9b3cc930 100755 --- a/packages/cli/src/index.js +++ b/packages/cli/src/index.js @@ -49,7 +49,7 @@ program ) .option( '--package-manager ', - 'The package manager to user. Options are "npm" or "yarn".' + 'The package manager to use. Options are "npm" or "yarn".' ) .option( '--ref-resolver ', diff --git a/packages/cli/src/utils/spawnProcess.js b/packages/cli/src/utils/spawnProcess.js index d7c183964..378d5fd85 100644 --- a/packages/cli/src/utils/spawnProcess.js +++ b/packages/cli/src/utils/spawnProcess.js @@ -47,7 +47,6 @@ async function spawnProcess({ context, command, args, processOptions, silent }) }); process.on('error', (error) => { - console.log(error); reject(error); }); diff --git a/packages/server/src/pages/[pageId].js b/packages/server/src/pages/[pageId].js index 1381cd01d..2fdd5ef4a 100644 --- a/packages/server/src/pages/[pageId].js +++ b/packages/server/src/pages/[pageId].js @@ -20,7 +20,8 @@ import Page from '../components/Page.js'; export async function getServerSideProps(context) { const { pageId } = context.params; - const apiContext = await createApiContext({ buildDirectory: './.lowdefy/build' }); + // TODO: get the write api context options + const apiContext = await createApiContext({ buildDirectory: './build' }); // TODO: Maybe we can only get rootConfig once? // We can't do getServerSideProps on _app :(