diff --git a/.gitignore b/.gitignore index 0e3c9522..23ab9668 100644 --- a/.gitignore +++ b/.gitignore @@ -72,7 +72,7 @@ web_modules/ # Yarn Integrity file .yarn-integrity -# dotenv environment variable files +# Environment variable files .env .env.development.local .env.test.local diff --git a/README.md b/README.md index e68faa55..6dc50833 100644 --- a/README.md +++ b/README.md @@ -175,7 +175,7 @@ You can pass the following options via CLI arguments. You can also use `--config | Set the IP/CIDR value for `trustProxy` (2nd precedence) | | `--trust-proxy-ips` | `FASTIFY_TRUST_PROXY_IPS` | | Set the nth hop value for `trustProxy` (3rd precedence) | | `--trust-proxy-hop` | `FASTIFY_TRUST_PROXY_HOP` | -By default, `fastify-cli` runs [`dotenv`](https://www.npmjs.com/package/dotenv), so it will load all the env variables stored in `.env` in your current working directory. +By default, `fastify-cli` loads environment variables from `.env` in your current working directory using Node.js's built-in `process.loadEnvFile()` (requires Node.js >= 20.6.0). The default value for `--plugin-timeout` is 10 seconds. By default,`--ignore-watch` flag is set to ignore `node_modules build dist .git bower_components logs .swp' files. diff --git a/templates/plugin/.gitignore b/templates/plugin/.gitignore index 6214c438..f6551bdf 100644 --- a/templates/plugin/.gitignore +++ b/templates/plugin/.gitignore @@ -54,7 +54,7 @@ typings/ # Yarn Integrity file .yarn-integrity -# dotenv environment variables file +# Environment variable files .env .env.test