title: NextJS SSR in Capacitor
body: <p>we use Next.js with server-side rendering (SSR) and we'd like to wrap our app with Capacitor.js so that we can ship it to both Android and iOS devices. Sadly, this only seems to be possible when using static site generation (SSG) and I cannot find anything on how to even attempt to make SSR work.</p>
  <p>A couple of threads seem to hint that this is possible: <a href="https://stackoverflow.com/questions/55894716/how-to-package-a-hosted-web-app-with-ionic-capacitor">How to package a hosted web app with Ionic Capacitor</a> (not sure what type of rendering is used here) and <a href="https://github.com/MicrosoftDocs/cordova-docs/blob/master/articles/getting-started/create-a-hosted-app.md" rel="nofollow noreferrer">https://github.com/MicrosoftDocs/cordova-docs/blob/master/articles/getting-started/create-a-hosted-app.md</a> (this was for Cordova). I have never used Nuxt.js before but some hints that it could be possible with that framework as well here: <a href="https://stackoverflow.com/questions/67771384/using-capacitor-3-with-nuxtjs-ssr">Using Capacitor 3 with Nuxtjs SSR</a></p>
  <p>Essentially, is it possible to use Capacitor's Webview to display a hosted app instead of having to first build it statically? Could this be something that Capacitor 3 now allows?</p>
  <p>Should this be impossible, what would be your recommendation for having a mobile app knowing that we have built our web (and mobile responsive) product in Next.js, with heavy usage of <code>getServerSideProps</code> (i.e. SSR). Any help would be greatly appreciated.</p>