From 30efc7c2e639e638eb3943fd6ef3680802986b5e Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 1 May 2022 16:58:33 +0100 Subject: [PATCH] web/lukegbcom/wifi-qrcode: make nextjs export work --- web/lukegbcom/pages/tools/wifi-qrcode.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/lukegbcom/pages/tools/wifi-qrcode.js b/web/lukegbcom/pages/tools/wifi-qrcode.js index 25ddb4baff..b719d2160f 100644 --- a/web/lukegbcom/pages/tools/wifi-qrcode.js +++ b/web/lukegbcom/pages/tools/wifi-qrcode.js @@ -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,