server-side rendering works--JSON endpoint next