question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automatic Partial Static Export

See original GitHub issue

With v.9 we got this cool thing called “Automatic Partial Static Export” with the indicator icon in the bottom right corner. So I know if this will be a prerendered page or not.

Just want to get my head around this case, why do we lose this icon when we are using this lib? Is it because getInitialProps is called in the root which is blocking all sites from the static export abillity?

In my case I also have some landingpages which are not connected to my API which again I would like to serve static and save ressources. So this repo might not be the ideal solution for this case? Any advices?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
mariohoyos92commented, Oct 3, 2019

Would also love ability to use this with page components 😃 Thanks for all you do @lfades and viva Colombia!

8reactions
lfadescommented, Aug 1, 2019

@NikoMontana I did some research in a test project and I think it can work outside of _app and still have a shared cache without issues, it would not have to be a breaking change so I’ll see how to add it soon 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced Features: Automatic Static Optimization | Next.js
Automatic Static Optimization. Next.js automatically determines that a page is static (can be prerendered) if it has no blocking data requirements.
Read more >
A Complete Guide To Incremental Static Regeneration (ISR ...
Incremental Static Regeneration (ISR) is a new evolution of the Jamstack, allowing you to update static content instantly without needing a ...
Read more >
Incremental Static Regeneration with Next.js - LogRocket Blog
Every page should export a function that gets the required properties to render the page. The React component of the page does not...
Read more >
Incremental Static Regeneration – Vercel Docs
Incremental Static Regeneration (ISR) allows you to create or update content without redeploying your site. ISR has three main benefits for developers: ...
Read more >
Next.js 9 releases with built in zero-config TypeScript support ...
Automatic Partial Static Export. A heuristic was introduced to automatically determine if a page can be prerendered to static HTML using ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found