- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1k
          fix and update experimental Next.js template to work on @opennextjs/[email protected]
          #7638
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
  
     Merged
                    Changes from 5 commits
      Commits
    
    
            Show all changes
          
          
            6 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      e7f4eea
              
                update the experimental Next.js template to work on `@opennextjs/clou…
              
              
                dario-piotrowicz a5a6034
              
                fixup! update the experimental Next.js template to work on `@opennext…
              
              
                dario-piotrowicz 203e884
              
                fixup! update the experimental Next.js template to work on `@opennext…
              
              
                dario-piotrowicz 289d59e
              
                fixup! update the experimental Next.js template to work on `@opennext…
              
              
                dario-piotrowicz 1bce3e0
              
                fixup! update the experimental Next.js template to work on `@opennext…
              
              
                dario-piotrowicz ea5ba02
              
                fixup! update the experimental Next.js template to work on `@opennext…
              
              
                dario-piotrowicz File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      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
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "create-cloudflare": patch | ||
| --- | ||
|  | ||
| fix and update experimental Next.js template to work on `@opennextjs/[email protected]` | 
  
    
      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
    
  
  
    
              
  
    
      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
    
  
  
    
              
        
          
  
    
      
          
            2 changes: 2 additions & 0 deletions
          
          2 
        
  packages/create-cloudflare/templates-experimental/next/templates/.dev.vars
  
  
      
      
   
        
      
      
    
  
    
      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
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # Load .env.development* files when running `wrangler dev` | ||
| NEXTJS_ENV=development | 
  
    
      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
    
  
  
    
              
        
          
  
    
      
          
            28 changes: 28 additions & 0 deletions
          
          28 
        
  packages/create-cloudflare/templates-experimental/next/templates/open-next.config.ts
  
  
      
      
   
        
      
      
    
  
    
      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
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| import cache from "@opennextjs/cloudflare/kvCache"; | ||
|  | ||
| const config = { | ||
| default: { | ||
| override: { | ||
| wrapper: "cloudflare-node", | ||
| converter: "edge", | ||
| incrementalCache: async () => cache, | ||
| tagCache: "dummy", | ||
| queue: "dummy", | ||
| }, | ||
| }, | ||
|  | ||
| middleware: { | ||
| external: true, | ||
| override: { | ||
| wrapper: "cloudflare-edge", | ||
| converter: "edge", | ||
| proxyExternalRequest: "fetch", | ||
| }, | ||
| }, | ||
|  | ||
| dangerous: { | ||
| enableCacheInterception: false, | ||
| }, | ||
| }; | ||
|  | ||
| export default config; | 
  
    
      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
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
  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.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.