-
Notifications
You must be signed in to change notification settings - Fork 352
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
SEO and static HTML? #42
Comments
i thought the whole point of this repo was the SEO benefits |
So the things is, if you want to use Next.js while making an app using Capacitor you need to make it non-SSR friendly since the whole app shell should be exportable to Xcode and Android Studio, and further into the app stores. You can see this when you export the client app bundle which again gets synched into Xcode and Android Studio. The tight coupling that Next providers between client and server side is reduced, and you're left with a standalone client side bundle and a Next.js backend that provides you with some nice features still, like the HTTP routes etc. Not sure if Server Actions still works, haven't tested it out yet. But this whole thing unfortunately leads to loss of SEO-friendliness due to the whole client side living in a JavaScript bundle, no server side rendered markup anymore. So I think you gotta choose - you want a SEO-friendly website or an app? UPDATE: |
It would be great if these two things would be clarified in the README since most people are after combination of Ionic + NextJS because of SEO and static hosting:
The text was updated successfully, but these errors were encountered: