Static content changes not reflected in preview channel
See original GitHub issueI 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:
- Created a year ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.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.