[www] - redirect.tsv (now uses remote config)
This commit is contained in:
1 parent
4d3fa1c064
commit
8e587b5781
2 files changed
-29
No files matched your search
@@ -23,18 +23,6 @@ export default Object.keys(privateData)
|
||||
return config
|
||||
}, config)
|
||||
|
||||
let redirectPath = path.join(__dirname, '../redirect.tsv')
|
||||
export const redirectionTable = fs.readFileSync(redirectPath, 'utf-8')
|
||||
.split('\n')
|
||||
.map(row => row.split(/\s+/))
|
||||
.map(row => {
|
||||
let [from, to] = row
|
||||
return {
|
||||
'url': from,
|
||||
'redirect': to
|
||||
}
|
||||
})
|
||||
|
||||
export const name = 'Hudozka'
|
||||
export const host = 'art.shlisselburg.org'
|
||||
export const protocol = 'https://'
|
||||
|
||||
Reference in new issue
Block a user