[ci] format
This commit is contained in:
parent
7b9d042dde
commit
4cfbd402a4
3 changed files with 13 additions and 11 deletions
|
@ -27,12 +27,14 @@ export async function callGetStaticPaths({ isValidate, logging, mod, route, ssr}
|
|||
|
||||
let staticPaths: GetStaticPathsResult = [];
|
||||
if (mod.getStaticPaths) {
|
||||
staticPaths = (await mod.getStaticPaths({
|
||||
staticPaths = (
|
||||
await mod.getStaticPaths({
|
||||
paginate: generatePaginateFunction(route),
|
||||
rss: (data) => {
|
||||
resultInProgress.rss.push(data);
|
||||
},
|
||||
})).flat();
|
||||
})
|
||||
).flat();
|
||||
}
|
||||
|
||||
const keyedStaticPaths = staticPaths as GetStaticPathsResultKeyed;
|
||||
|
|
|
@ -11,14 +11,14 @@ describe('Dynamic pages in SSR', () => {
|
|||
projectRoot: './fixtures/ssr-dynamic/',
|
||||
buildOptions: {
|
||||
experimentalSsr: true,
|
||||
}
|
||||
},
|
||||
});
|
||||
await fixture.build();
|
||||
});
|
||||
|
||||
it('Do not have to implement getStaticPaths', async () => {
|
||||
const app = await fixture.loadSSRApp();
|
||||
const request = new Request("http://example.com/123");
|
||||
const request = new Request('http://example.com/123');
|
||||
const route = app.match(request);
|
||||
const response = await app.render(request, route);
|
||||
const html = await response.text();
|
||||
|
|
Loading…
Add table
Reference in a new issue