mirror of
https://github.com/iptv-org/iptv-org.github.io.git
synced 2025-05-10 17:10:06 -04:00
Strict page build rules
This commit is contained in:
parent
b0b32cdaaa
commit
53b4de0132
3 changed files with 8 additions and 2 deletions
|
@ -1 +1,3 @@
|
|||
export const prerender = true
|
||||
export const csr = true
|
||||
export const ssr = false
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -13,7 +13,8 @@ const config = {
|
|||
adapter: adapter({
|
||||
pages: 'docs',
|
||||
assets: 'docs',
|
||||
precompress: false
|
||||
precompress: false,
|
||||
strict: true
|
||||
})
|
||||
},
|
||||
preprocess: vitePreprocess()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue