Skip to content

Edge Functions are not deployed #6298

Description

@ShogunPanda

Describe the bug

When I run:

NETLIFY_SITE_ID=... netlify deploy --prod

The edge function is not deployed, the rest of the site deployed correctly.
This issue happens with any @netlify/cli 16.x or 17.x, while 15.x is ok.

Steps to reproduce

Run:

NETLIFY_SITE_ID=... netlify deploy --prod

Configuration

[build]
base = "dist"
publish = "html"
edge_functions = "functions"

[[edge_functions]]
path = "/"
function = "events-injector"
cache = "manual"

[[headers]]
for = "*.png"

[headers.values]
Cache-Control = "public, s-maxage=31536000, max-age=31536000"

[[headers]]
for = "*.webp"

[headers.values]
Cache-Control = "public, s-maxage=31536000, max-age=31536000"

[[headers]]
for = "*.woff2"

[headers.values]
Cache-Control = "public, s-maxage=31536000, max-age=31536000"

[[headers]]
for = "*.json"

[headers.values]
Cache-Control = "public, s-maxage=31536000, max-age=31536000"

[[headers]]
for = "*.js"

[headers.values]
Cache-Control = "public, s-maxage=31536000, max-age=31536000"

[[headers]]
for = "sw.js"

[headers.values]
Cache-Control = "s-maxage=0, max-age=0, no-cache, no-store, must-revalidate"

Environment

  System:
    OS: macOS 14.2.1
    CPU: (12) arm64 Apple M2 Max
    Memory: 12.13 GB / 64.00 GB
    Shell: 3.6.0 - /opt/homebrew/bin/fish
  Binaries:
    Node: 20.8.0 - /usr/local/bin/node
    Yarn: 1.22.21 - /usr/local/bin/yarn
    npm: 10.1.0 - /usr/local/bin/npm
    pnpm: 8.13.1 - /usr/local/bin/pnpm
  npmGlobalPackages:
    netlify-cli: 17.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugcode to address defects in shipped code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions