Parse react SSR not initialising in next js
sidwebworks opened this issue · 1 comments
sidwebworks commented
RESTController.js?a3b1:331 Uncaught TypeError: Cannot read property 'length' of undefined
at Object.request (RESTController.js?a3b1:331)
at eval
Hi I am initialising parse using the code in the package doc.
I used to use parse js sdk where I only used 2 things, the app id and server URL.
here it also had Javascript key. So I added my parse master key
Still no luck
sidwebworks commented
Ah turns out my fault, it didn't prefix my env variables with NEXT_PUBLIC