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) => {
|
WifiQRCode.getInitialProps = async (ctx) => {
|
||||||
const {
|
let {
|
||||||
eventName,
|
eventName,
|
||||||
ssid,
|
ssid,
|
||||||
psk,
|
psk,
|
||||||
hidden,
|
hidden,
|
||||||
} = ctx.query
|
} = ctx.query
|
||||||
|
|
||||||
|
eventName = eventName || ''
|
||||||
|
ssid = ssid || ''
|
||||||
|
psk = psk || ''
|
||||||
|
hidden = hidden || false
|
||||||
|
|
||||||
return {details: {
|
return {details: {
|
||||||
eventName,
|
eventName,
|
||||||
ssid,
|
ssid,
|
||||||
|
|
Loading…
Reference in a new issue