fix: Fix home page route in server.

This commit is contained in:
Sam Tolmay 2021-11-27 11:19:59 +02:00
parent 41a9a30b30
commit 640ab8a652
No known key found for this signature in database
GPG Key ID: D004126FCD1A6DF0

View File

@ -19,8 +19,9 @@ import { createApiContext, getHome, getPageConfig, getRootConfig } from '@lowdef
import Page from '../components/Page.js';
export async function getServerSideProps() {
const apiContext = await createApiContext({ buildDirectory: './.lowdefy/build' });
const apiContext = await createApiContext({ buildDirectory: './build' });
const home = await getHome(apiContext);
console.log(home);
if (home.configured === false) {
return {
redirect: {