Questions tagged [Server-Side Rendering] (53)

1
answer

NUXT, in serverMiddleware right to transmit data in asyncData?

Found one way - using crutches - to attach data to req. In serverMiddlewhare do so: export default async function (req, res, next) { req.que1 = 'qqq' next() } ... Then take this: asyncData, async ({ req }) { if (process.server) { req.que1 ...} } As for a human to do? Vuex not used. To take the data going to your API ajac...
summer7 asked April 18th 20 at 13:09
1
answer

In NUXT on the server to take the data directly from the database (as opposed to a request to another endpoint)?

Just started to learn NUXT and SSR in General. The primary server on the express, generating the vue prilozhu use as an api, giving json. Want at generation vue prilagodi immediately take data from postgres. I understand this is done in the method asyncData (https://nuxtjs.org/guide/async-data) But all the examples of how ...
Celestino asked April 18th 20 at 13:03
2
answers

Server vs browser render render?

How do you better render the DOM on the server side or using JavaScript frameworks? Sags do render using JavaScript frameworks on the mini PC or old?
Margie asked April 9th 20 at 10:14
1
answer

How to deploy node.js app with the old backend in PHP?

There is a site on PHP. You need to deploy the application to node.js (rendering on the server) using the old backend, written in PHP. That is, to node.js data were taken with the API in PHP and operated by them. How to implement it? Start node.js app on single server, php backend on the other, or both? In what direction t...
jaida_Barro asked April 9th 20 at 09:31
1
answer

What do you mean server-side rendering?

Why the concept of "Server side rendering" be sure to use React? What does that mean? Is the lookup data from the database and returns template, the client does not have the same server-side rendering?
Aubree_Langworth39 asked April 8th 20 at 09:44
0
answer

As correct for seo to get the data in nuxt?

Good afternoon, prompt please, properly for SEO this way to render the data in nuxt <div class="item" v-for="(item, index) in items" key="index" ></div> computed: { items(){ return this.$store.state.store.products } }, mounted() { this.$store.dispatch('store/getProducts') } The question arose for the reason ...
bernard.Mosciski asked April 8th 20 at 09:41
1
answer

Why axios does not see the http adapter when running in node?

I'm struggling with SSR in conjunction laravel + vue.js + axios. The latter does not see the http adapter. When sending a get request promis will rejected with the error: TypeError: the adapter is not a function at dispatchRequest (/Users/vladimir/Programming/GR/lawsystem.test/storage/app/ssr/675059bc8c1babf0be6d4ed5102e69a...
Jaydon.Aufderhar asked April 7th 20 at 16:39
1
answer

How to programmatically invalidinput SSR cache NextJS?

Don't understand how the project NextJS to invalidinput cache SSR. In all the examples (for example) the cache is not stored in Memcache or in, say, Redis, and right in the app and invalidities by the ttl. Accordingly, if I have a blog, and I edited the article so the user can see the changes on the website, it may take a w...
Lauretta_Litt asked April 7th 20 at 16:30
1
answer

Why SSR in the blank page source code to more than 2000 lines?

Help to understand, there nuxt.config.js Included SSR (universal mod), the page is loaded for 5-10 seconds. In the source code gets all the vuetify. How to fix? plugins: [ '~components/global', '~plugins/i18n', '~plugins/axios', '~plugins/fontawesome', { src: '~/plugins/snackstack', ssr: false }, { src: '~plugins/socke...
cora.Prohaska32 asked April 7th 20 at 15:51
1
answer

There is a component for Vue.js iframe type, with support for SSR?

There is some component under Vue.js type https://www.npmjs.com/package/vue-friendly-iframe but to work with SSR? Or maybe there's something like a built-in browser for PHP? The problem is that you need to open the web page directly from the page of my project, but the request for this site must come from the server, not...
gilberto_Kub asked April 7th 20 at 15:19