Created
          August 15, 2023 00:36 
        
      - 
      
 - 
        
Save jedwards1211/2118cbf23a73fd5eb76c72aaf38da9cd to your computer and use it in GitHub Desktop.  
    Patch for using Nitro 2.5.2 with Cloudflare Pages
  
        
  
    
      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
    
  
  
    
  | diff --git a/node_modules/nitropack/dist/shared/nitro.7a525996.mjs b/node_modules/nitropack/dist/shared/nitro.7a525996.mjs | |
| index 90c7e4a..859bee1 100644 | |
| --- a/node_modules/nitropack/dist/shared/nitro.7a525996.mjs | |
| +++ b/node_modules/nitropack/dist/shared/nitro.7a525996.mjs | |
| @@ -1768,6 +1768,7 @@ export const plugins = [ | |
| conditions: [ | |
| "default", | |
| nitro.options.dev ? "development" : "production", | |
| + "workerd", | |
| "module", | |
| "node", | |
| "import" | |
| @@ -1814,6 +1815,7 @@ export const plugins = [ | |
| "default", | |
| nitro.options.dev ? "development" : "production", | |
| "module", | |
| + "workerd", | |
| "node", | |
| "import" | |
| ] | |
| @@ -1833,6 +1835,7 @@ export const plugins = [ | |
| "default", | |
| nitro.options.dev ? "development" : "production", | |
| "module", | |
| + "workerd", | |
| "node", | |
| "import" | |
| ] | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Usage
patchesdir in your project and copynitropack+2.5.2.patchto itpatch-package@^8.0.0to your `devDependenciespostinstallscript runpatch-package