-
Notifications
You must be signed in to change notification settings - Fork 1
/
svelte.config.js
60 lines (57 loc) · 1.5 KB
/
svelte.config.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
import preprocess from 'svelte-preprocess'
import adapter from '@sveltejs/adapter-static'
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: preprocess({
postcss: true
}),
kit: {
adapter: adapter({
fallback: 'index.html'
}),
prerender: {
// use relative URLs similar to an anchor tag <a href="/test/1"></a>
// do not include group layout folders in the path such as /(group)/test/1
entries: [
'*',
'/filecoin/connect',
'/filecoin/help',
'/filecoin/intro',
'/filecoin/leaderboard',
'/filecoin/monitor',
'/filecoin/play',
'/filecoin/profile',
'/filecoin/vote',
'/ethereum/connect',
'/ethereum/help',
'/ethereum/intro',
'/ethereum/leaderboard',
'/ethereum/monitor',
'/ethereum/play',
'/ethereum/profile',
'/ethereum/vote',
'/polygon/connect',
'/polygon/help',
'/polygon/intro',
'/polygon/leaderboard',
'/polygon/monitor',
'/polygon/play',
'/polygon/profile',
'/polygon/vote'
],
handleHttpError: ({ path, referrer, message }) => {
// ignore deliberate link to shiny 404 page
console.log('path', path)
console.log('referrer', referrer)
if (
path.includes('/TODO')
) {
return
}
// otherwise fail the build
throw new Error(message)
}
}
}
}
export default config