Server side rendering when running app in production mode

Hi,

I’m new to DoneJS and I really like it. However, I’m struggling with something.
I created and app and added some components and models. Some of the components list some data fetched from an api, through the models.
When I run the app with donejs develop, the server side rendering works fine and I can see the content rendered in the page (html).

However, if I do a
donejs build
and then
NODE_ENV=production donejs start
the app starts, but all the data fetched from the api doesn’t get SSR - I only see the component tag in html, not the content / list of items.
Is this how it’s supposed to work or am I missing something?
I mean the whole SSR is more important for production (SEO) rather than devel so I expected it to work out of the box in production mode, not in devel mode.

Thanks! :slight_smile:

This sounds like either a bug or a problem in your code.

Do things work when going through the place-my-order guide?

Can you share your code?

1 Like

Hi Justin,

Good idea with the place-my-order guide, thanks for the tip :slight_smile: It seems indeed that is working as expected.
So I’m probably doing something wrong in my code.
I’ll keep digging, but it’s great that it works.