web/lukegbcom/wifi-qrcode: make nextjs export work

This commit is contained in:
Luke Granger-Brown 2022-05-01 16:58:33 +01:00
parent 247f90d129
commit 30efc7c2e6

View file

@ -52,13 +52,18 @@ function WifiQRCode({ details }) {
}
WifiQRCode.getInitialProps = async (ctx) => {
const {
let {
eventName,
ssid,
psk,
hidden,
} = ctx.query
eventName = eventName || ''
ssid = ssid || ''
psk = psk || ''
hidden = hidden || false
return {details: {
eventName,
ssid,