Conversation
…nhanced env vars Co-authored-by: thinkdj <688055+thinkdj@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] ensure all nextjs features SSR, ISR, Next/image optimization, next/font , environment variable , are somehow shown in this repo. it's a demo repo to show feasibility (nextjs on cloudflare workers)
Complete Next.js Features Demo: Add ISR, Next/Image, Next/Font, and Enhanced Environment Variables
Aug 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR transforms the repository into a comprehensive demonstration of Next.js feasibility on Cloudflare Workers by implementing all major Next.js features that were missing from the original demo.
🚀 New Features Added
Incremental Static Regeneration (ISR)
/isr-demowith automatic 30-second revalidation/isr-demo/[id]with 60-second revalidationgenerateStaticParamsfor popular contentNext/Image Optimization
/image-demowith multiple aspect ratiosNext/Font Optimization
/font-demowith system font fallbacksEnhanced Environment Variables
/env-demoshowing server vs client variables.env.localwith example values🛠️ Technical Improvements
📸 Visual Changes
The home page now displays all Next.js features in an organized grid:
✅ Build & Runtime Verification
The repository now serves as a complete feasibility demonstration, showing that Next.js 15+ with all major features works seamlessly on Cloudflare Workers using OpenNext.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
fonts.googleapis.com/usr/local/bin/node /home/REDACTED/work/nextjs-on-cloudflare/nextjs-on-cloudflare/node_modules/next/dist/compiled/jest-worker/processChild.js(dns block)workers.cloudflare.comnext-server (v15.5.0)(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.