I'm willing to bet this is just a configuration error, since I cannot find anyone else with this issue.
- Do you want to request a feature or report a bug?
Feature- or config help
- What is the current behavior?
Right now, if I run netlify dev, everything work correctly- however, it also watches the directory that my build command builds into, so it continually triggers the build command, until my computer crashes
- What is the expected behavior?
Netlify dev's watch should probably not care about the build dir
- Local Environment Information
Netlify.toml:
[build]
command = "npm run build"
functions = "build"
publish = "build"
[[redirects]]
from = "/"
to = "/.netlify/functions/graphql-api"
status = 200
force = true
file structure:
- build
- src
- functions
- [other files used by graphql-api.ts]
- graphql-api.ts
build command:
"build": "netlify-lambda build src/functions --config webpack.functions.js",
webpack config:
const nodeExternals = require('webpack-node-externals');
module.exports = {
optimization: { minimize: false },
externals: [nodeExternals()],
};
babelrc
{
"presets": ["@babel/preset-typescript", ["@babel/env", { "targets": { "node": "current" } }]],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-object-assign",
"@babel/plugin-proposal-object-rest-spread"
],
"env": {
"production": {
"presets": [
["@babel/env", { "targets": { "node": "current" }, "forceAllTransforms": true, "useBuiltIns": "usage" }]
]
}
}
}
────────────────────┐
Environment Info │
────────────────────┘
System:
OS: macOS 10.15.1
CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Binaries:
Node: 12.16.3 - ~/.bin/n/bin/node
Yarn: 1.22.4 - /Volumes/Projects/PersonalApi/node_modules/.bin/yarn
npm: 6.14.5 - /usr/local/bin/npm
Browsers:
Safari: 13.0.3
netlify-cli/2.50.0 darwin-x64 node-v12.16.3
I'm willing to bet this is just a configuration error, since I cannot find anyone else with this issue.
- Do you want to request a feature or report a bug?
Feature- or config help
- What is the current behavior?
Right now, if I run
netlify dev, everything work correctly- however, it also watches the directory that my build command builds into, so it continually triggers the build command, until my computer crashes- What is the expected behavior?
Netlify dev's watch should probably not care about the build dir
- Local Environment Information
Netlify.toml:
file structure:
build command:
"build": "netlify-lambda build src/functions --config webpack.functions.js",webpack config:
babelrc