Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.93 KB

README.md

File metadata and controls

55 lines (43 loc) · 1.93 KB

Repro code repo

Minimal repro for Edge Functions manifest route patterns validation error

Prerequisites: At least netlify-cli@10.17.8 npm install netlify-cli@10.17.8 -g

Repro Steps:

npm i && netlify build

Error

────────────────────────────────────────────────────────────────
  Internal error during "Edge Functions bundling"
────────────────────────────────────────────────────────────────

  Error message
  Error: [
    {
      "instancePath": "/routes/2/pattern",
      "schemaPath": "#/properties/routes/items/properties/pattern/errorMessage",
      "keyword": "errorMessage",
      "params": {
        "errors": [
          {
            "instancePath": "/routes/2/pattern",
            "schemaPath": "#/properties/routes/items/properties/pattern/format",
            "keyword": "format",
            "params": {
              "format": "regexPattern"
            },
            "message": "must match format \"regexPattern\"",
            "emUsed": true
          }
        ]
      },
      "message": "must match format /^\\^.*\\$$/"
    }
  ]

Testing fix instructions:

    "astro": "/Users/jackie/oss/astro/packages/astro",
    "@astrojs/netlify": "/Users/jackie/oss/astro/packages/integrations/netlify"
  • In astro-cattos run npm i && netlify build Netlify CLI needs to be at least version 10.17.8. Build should complete without errors.