-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Next.js Integration #378
Comments
As far as I know, it's not possible with Next.js. Stitch doesn't appear to support isomorphic apps. There's a workaround posted here, but I wasn't able to get it to work for me. If you can get it to work, could you let me know? |
I was able to get anonymous auth in next js I have a _app.js file with a layout.js component inside my layout.js: import Head from 'next/head' then in the head I used the sdk script tag create an auth.js file in the public dir with this code: function initializeAndLogin() { I then added this div into a component |
I'm trying to use Stitch from a Next.js app and I'm getting a 'self is not defined' error. I'd like to see an example where Stitch runs nice with next.js. Is that possible?
The text was updated successfully, but these errors were encountered: