Merge branch 'master' into 266-zaps-without-account
This commit is contained in:
commit
a0974e4d6c
|
@ -44,7 +44,7 @@ export default function UserList ({ ssrData, query, variables, destructureData }
|
|||
useEffect(() => {
|
||||
// shift the stat we are sorting by to the front
|
||||
const comps = [...STAT_COMPONENTS]
|
||||
setStatComps(seperate([...comps.splice(STAT_POS[variables.by || 0], 1), ...comps], Seperator))
|
||||
setStatComps(seperate([...comps.splice(STAT_POS[variables?.by || 0], 1), ...comps], Seperator))
|
||||
}, [variables?.by])
|
||||
|
||||
const { users, cursor } = useMemo(() => {
|
||||
|
|
|
@ -46,6 +46,15 @@ module.exports = withPlausibleProxy()({
|
|||
...corsHeaders
|
||||
]
|
||||
},
|
||||
// never cache service worker
|
||||
// https://stackoverflow.com/questions/38843970/service-worker-javascript-update-frequency-every-24-hours/38854905#38854905
|
||||
{
|
||||
source: '/sw.js',
|
||||
headers: [{
|
||||
key: 'Cache-Control',
|
||||
value: 'no-cache'
|
||||
}]
|
||||
},
|
||||
{
|
||||
source: '/api/lnauth',
|
||||
headers: [
|
||||
|
|
Loading…
Reference in New Issue