Next.js 8 and RNW Transpilation Issues
TL;DR: I need to transpile ESM source with Next.js, but I am unable to get it working with Next.js 8 I am attempting to transpile react-native-web source inside of my Next.js project. I succeeded at doing this in the past (see older Next.js RNW example). With Next.js 8,…
getInitialProps and Shared Context
I have two pages (home page and movie page), and both fetches movie data in getInitialProps. I would like avoid fetching twice. I don't want to use redux, so I thought of creating a context provider in _app component. But how can I check if the context has data inside static…
Programatic Page Creation
I'm looking to create a site using Contentful as a headless data source. I'm wondering if anyone has found a way to programmatically create pages - including the home page, with Next.js. I'm familiar with Nuxt.js approach, in that all pages prefixed with an _ become dynamic. I'm…
Js within SSR page not starting when reached with link, only at reload/URL
Greetings! As per subject, I have a page made up entirely of JS scripts (running a Three.js viewport), but no code is run on accessing the page through <Link> elements. Reloading the page, or fetching the page through URL directly, does make it work. How comes?
Caching External Assets??
Is it possible/recommended to somehow cache assets coming from API responses? I understand LRUcache with express server can be used to cache nextjs pages on server-side. I'm using wordpress API and I have a bunch of images & videos coming from there. I want to speed up how fast…
Unable to migrate to v2 w/next.js + serverless to now
I have a next.js application that builds everything via webpack. When built locally, I've got no issues, I even manage to get it started with next start. I'm trying to migrate the application to v2 with the serverless target setup, but even though I get no errors in the logs,…