-
Notifications
You must be signed in to change notification settings - Fork 33
/
pages-manifest.js
65 lines (65 loc) · 1.8 KB
/
pages-manifest.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
export default [
{
chunk: 'home',
path: '/',
title: 'Home',
description: 'Demonstrated here is a simple page which all of its assets are fetched in parallel.'
},
{
chunk: 'lorem-ipsum',
path: '/lorem-ipsum',
title: 'Lorem Ipsum',
description:
"Demonstrated here is a large amount of static data that is pre-generated and fetched in parallel with all of the page's assets.",
data: [
{
url: '/json/lorem-ipsum.json',
menuPreload: true
}
]
},
{
chunk: 'pokemon',
path: '/pokemon',
title: 'Pokémon',
description:
"Demonstrated here is dynamic data that is fetched in parallel with all of the page's assets and passed directly to its sub-pages.",
data: [
{
url: 'https://pokeapi.co/api/v2/pokemon?limit=10000',
crossorigin: 'anonymous',
menuPreload: true
}
]
},
{
chunk: 'pokemon-info',
path: '/pokemon/:name',
description: "Demonstrated here is dynamic path data that is fetched in parallel with all of the page's assets.",
data: [
{
url: ({ name }) => `https://pokeapi.co/api/v2/pokemon/${name}`,
crossorigin: 'anonymous',
preconnectURL: 'https://raw.githubusercontent.com'
},
{
url: ({ name }) => `https://pokeapi.co/api/v2/pokemon-species/${name}`,
crossorigin: 'anonymous'
}
],
menuItem: false
},
{
chunk: 'comparison',
path: '/comparison',
title: 'Comparison',
description:
'This page compares all rendering methods, listing their pros and cons.\nYou can click on each point to view a detailed explanation.'
},
{
chunk: 'core-web-vitals',
path: '/web-vitals',
title: 'Web Vitals',
description: 'This page specifies the values of core web vitals.'
}
]