Strict page build rules

This commit is contained in:
freearhey 2023-10-10 17:41:42 +03:00
parent b0b32cdaaa
commit 53b4de0132
3 changed files with 8 additions and 2 deletions

View file

@ -1 +1,3 @@
export const prerender = true
export const csr = true
export const ssr = false

View file

@ -22,8 +22,11 @@ data.streams = _.groupBy(_streams, 'channel')
data.blocklist = _.groupBy(blocklist, 'channel')
data.channels = _.keyBy(channels, channel => channel.id.toLowerCase())
export const csr = true
export const ssr = true
export function entries() {
return Object.values(data.channels).map(channel => {
return channels.map(channel => {
const [name, country] = channel.id.split('.')
return {

View file

@ -13,7 +13,8 @@ const config = {
adapter: adapter({
pages: 'docs',
assets: 'docs',
precompress: false
precompress: false,
strict: true
})
},
preprocess: vitePreprocess()