-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Migrate to Azure Static Web Apps #556
Comments
I don’t think azure-static-web-apps are for apps that require server-side rendering.
I have a few questions about why we need server-side rendering for this project. Usually, client-side rendering is preferred for a dashboard-type project where everything is locked behind the login screen. Cons of client-side rendering (SPA):
Pros:
Generally, SEO is an issue for a client-side rendered app(SPA) if you want multiple pages to be indexed by a search engine. Client-Side apps are single-page apps. We just dynamically change the body of the page when we change the route and everything else remains the same on every route, and Seach engine crowlers rely on Why should we consider client-side rendering(SPA):
server-side rendering:
In conclusion, server-side rendering is unnecessary if we just need a dashboard. SEO on jabref landing page is really good. We can directly connect jabref-online from www.jabref.org/admin or /dashboard. I guess vue-cli can create the boilerplate code for a SPA, and we can get rid of nuxt(Whenever I try to spin a local development server, it rarely works for me. I get so many errors. Please clone this repo again and try to run the server.). Or maybe please reconsider React. React has excellent community support (There is a library for everything in react), and every framework (next, create-react-app) for React works seamlessly. Plus, typescript support in react is amazing. Plus, you can share the business logic if you plan to create an app for ios and android with react native in the future. Plz, reconsider React. |
Thanks for your input. I agree with almost everything! For the dashboard feature, client side rendering is indeed all we need. But I also plan to integrate the main jabref website, as well as the blog to have everything in one place and with the same design. Also in the future we might indeed add user profiles and/or pages where you can view research articles (similar to researchgate). For these things ssr (or even build-time rendering) makes sense. But yes, for now we can disable ssr. It's exactly this hybrid design were things like nuxt can support us, because there you can declare certain routes to be spa, others ssr and others build-time rendering. Azure static does support ssr through azure functions, and this is something nuxt automatically takes care of. Finally, yes, the current setup is a mess and doesn't work half of the time. I shouldn't have upgraded to nuxt-bridge which is not really production ready. Things are way better with nuxt3 which runs now relatively stable (with some hickups due to esm packages, but this is generally okay and only gives headaches upon package upgrades). I hope I can merge #1009 in the coming days. Thanks for your continued interest. It's been a busy time for me the past few months, but hopefully I find more time in the near future to develop on jabref online so that we can finally show the world your nice work on the word plugin. We should also have a call soon again! |
Ok
Sure, Let me know when you're free. |
Blocked by Azure/static-web-apps#623 (as nuxt requires at least node 14)
https://azure.microsoft.com/en-us/pricing/details/app-service/static/
TODO:
@vue/apollo
example implementation nuxt/framework#70?The text was updated successfully, but these errors were encountered: