Skip to content

functions-internal is emptied - adapter-netlify #8903

@lemusthelroy

Description

@lemusthelroy

Describe the bug

Some Netlify integrations, such as the emails integration, auto generate functions prior to the build and these will exist in the functions-internal folder.

I am not totally aware of why the functions-internal directory is emptied currently by this adapter, however, by emptying the folder completely, any auto-generated functions will be deleted.

Reproduction

  • Create any app using sveltekit
  • Follow the steps to add the Netlify adapter
  • Follow these docs to add the Netlify emails integration
  • Run netlify build and observe that the emails function is create in .netlify/functions-internal and is then removed

Logs

No response

System Info

System:
    OS: macOS 13.2
    CPU: (10) arm64 Apple M1 Pro
    Memory: 357.80 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.16.0/bin/yarn
    npm: 9.1.1 - ~/.nvm/versions/node/v16.16.0/bin/npm
  Browsers:
    Chrome: 109.0.5414.119
    Firefox: 108.0.1
    Safari: 16.3
  npmPackages:
    @sveltejs/adapter-auto: ^1.0.0 => 1.0.2 
    @sveltejs/adapter-netlify: ^1.0.5 => 1.0.5 
    @sveltejs/kit: ^1.0.0 => 1.3.10 
    svelte: ^3.54.0 => 3.55.1 
    vite: ^4.0.0 => 4.1.1

Severity

annoyance

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions