feat(docs): bootstrapping using blocksuite (#2859)

This commit is contained in:
Alex Yang
2023-06-26 21:39:07 +08:00
committed by GitHub
parent bddcfe1b8b
commit e3ffd04804
9 changed files with 148 additions and 82 deletions

View File

@@ -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'];
}
);