web/lukegbcom/wifi-qrcode: make nextjs export work
This commit is contained in:
parent
247f90d129
commit
30efc7c2e6
1 changed files with 6 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue