mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-04-06 15:30:30 +08:00
fix: Fix home page route in server.
This commit is contained in:
parent
41a9a30b30
commit
640ab8a652
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user