cli icon indicating copy to clipboard operation
cli copied to clipboard

Ability to configure watcher. EACCES issue

Open Vanuan opened this issue 2 years ago • 3 comments

Describe the bug

By default, netlify watches the entire project directory. Not only this inefficient, but it also blocks start of the server is any of the files in this directory has different permissions.

I have the following in my vite config:

  export default defineConfig({
    server: {
      watch: {
        ignored: ["**/supabase/**"],
      },
    },
  });

Probably the same watch ignore option should be added to netlify.toml, but I couldn't find any.

What's the workaround?

Steps to reproduce

  1. touch test
  2. sudo chown root ./test
  3. netlify dev

Configuration

No response

Environment

System: OS: Linux 5.15 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish) CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz Memory: 22.92 GB / 31.00 GB Container: Yes Shell: 5.1.16 - /bin/bash Binaries: Node: 18.13.0 - /usr/bin/node Yarn: 1.21.1 - /usr/bin/yarn npm: 8.19.3 - /usr/bin/npm

Vanuan avatar Mar 27 '23 04:03 Vanuan