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.

Static content changes not reflected in preview channel

See original GitHub issue

I am trying to use a preview channel when deploying a Next.js application. Helpfully, the CLI warns me that preview channels will not work with the generated Cloud Function (yet? Support for this would be fantastic!):

Cannot preview changes to the backend, you will only see changes to the static content on this channel.

Despite the warning, and me continuing the deploy anyways, the static content is not updated in the created preview channel. Instead, the same content as deployed to the main channel is served under the preview channel’s URL. This is despite the page in question (versions) being marked as static by the Next.js build log:

└ ○ /versions                              329 B          76.1 kB

...

○  (Static)  automatically rendered as static HTML (uses no initial props)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
ErikWitterncommented, May 18, 2022

@jamesdaniels Your theory sounds very plausible. The HTML files contained .firebase/{projectId}/hosting after deploying the preview channel contain the updated content, but the preview channel still serves the content last deployed to the main channel.

I sent you the zipped .firebase channel for further investigation.

1reaction
jamesdanielscommented, May 15, 2022

If I were to guess, it’s that your pre-rendered pages are transformed into paths and .html files in a way that aren’t getting picked up by hosting, so all the content is falling back to the Cloud Function (which doesn’t support previews ATM), rather than served by the CDN. Does that pass the sniff test @ErikWittern?

If you don’t mind zipping up your generated .firebase directory and sending it my way, jamesdaniels@google.com. I’ll take a look when I return from my leave—first week of June.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WordPress Changes Not Showing? Here's How to Fix ... - Kinsta
Why Is My WordPress Site Not Updating? · Browser caching – stores certain static files on visitors' local computers in the web browser...
Read more >
WordPress Changes Not Showing? Here's How to Fix It!
Are you running into the WordPress Changes Not Showing issue? Learn how to fix this common problem with help from this tutorial!
Read more >
WordPress Changes Not Showing? 3 Methods to Fix It Right ...
The most common cause of WordPress changes not showing is caching. Thus, in this troubleshooting guide, we will share three methods to fix ......
Read more >
Visual Studio debugger not updating files correctly Once again
Go to your web.config file and make a change in it. Its not matter what change you make. For example type a character...
Read more >
Test your web app locally, share changes with ... - Firebase
Option 1: Clone from a preview channel to your live channel ... You can optionally deploy your app's Hosting content and config, but...
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