feat(docs): bootstrapping using blocksuite (#2859)
This commit is contained in:
@@ -1,21 +1,17 @@
|
||||
import { defineEntries } from 'waku/server';
|
||||
import { defineRouter } from 'waku/router/server';
|
||||
|
||||
export default defineEntries(
|
||||
// getEntry
|
||||
export default defineRouter(
|
||||
async id => {
|
||||
switch (id) {
|
||||
case 'App':
|
||||
return import('./src/app.js') as any;
|
||||
case 'index': {
|
||||
const { default: AppCreator } = await import('./src/app.js');
|
||||
return AppCreator(id);
|
||||
}
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
},
|
||||
// getBuildConfig
|
||||
async () => {
|
||||
return {
|
||||
'/': {
|
||||
elements: [['App', {}]],
|
||||
},
|
||||
};
|
||||
return ['index'];
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user