Merge branch 'master' into 266-zaps-without-account

This commit is contained in:
keyan 2023-08-07 16:48:52 -05:00
commit a0974e4d6c
2 changed files with 10 additions and 1 deletions

View File

@ -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(() => {

View File

@ -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: [