You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Rails 4.2.5, Sprocket 3.0.0.
Locally i could prerender react component using {prerender: true} .
On Heroku, if i use prerender, there's always error:
@rmosolgo The problem is, server-side rendering works fine in local, but fails in Heroku.
So what's the difference here between local and heroku ?
Anyway, i've tested the branch. And it works!
So what's the difference here between local and heroku ?
Local:
Rails.env# => "development"
Heroku:
Rails.env# => "production"
Rails has some ways that it behaves differently between development environment and production environment, and assets is one of those things that's different!
Thanks for giving it a try! I'll try to finish up that branch and merge it soon.
I'm using Rails 4.2.5, Sprocket 3.0.0.
Locally i could prerender react component using
{prerender: true}
.On Heroku, if i use prerender, there's always error:
If i use
{prerender: false}
on Heroku, the web runs well.How to use server side rendering on Heroku with this gem ?
The text was updated successfully, but these errors were encountered: