Introduced Server Side Rendering for Cloud Pages based on React
This commit is contained in:
1 parent
569b849457
commit
1d6772eef3
17 files changed
+456
-61
No files matched your search
+1
-4
@@ -11,7 +11,6 @@ import schedule from './schedule'
|
||||
import {getPageUrls} from '../core/pages'
|
||||
import news from './news'
|
||||
import gallery from './gallery'
|
||||
import error404 from './404'
|
||||
import documents from './documents'
|
||||
import teachers from './teachers'
|
||||
import events from './events'
|
||||
@@ -32,7 +31,6 @@ export function routes(store) {
|
||||
events(),
|
||||
articles(),
|
||||
pages(),
|
||||
error404()
|
||||
])
|
||||
}
|
||||
|
||||
@@ -96,6 +94,5 @@ export function json(fn) {
|
||||
}
|
||||
|
||||
async function getInitialData() {
|
||||
const pages = await getPageUrls()
|
||||
return {pages: pages}
|
||||
return {pages: []}
|
||||
}
|
||||
Reference in new issue
Block a user