Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switching branches causes crash #6576

Open
magicseth opened this issue May 10, 2024 · 0 comments
Open

switching branches causes crash #6576

magicseth opened this issue May 10, 2024 · 0 comments
Labels
type: bug code to address defects in shipped code

Comments

@magicseth
Copy link

Describe the bug

Switching branches caused a crash

Steps to reproduce

[app] npm run dev:app exited with code 1
TypeError: res.writeHead is not a function
at ProxyServer. (file:///Users/sethraphael/Projects/padtime/node_modules/netlify-cli/dist/utils/proxy.js:360:13)
at ProxyServer.emit (/Users/sethraphael/Projects/padtime/node_modules/netlify-cli/node_modules/eventemitter3/index.js:204:33)
at Socket.onOutgoingError (/Users/sethraphael/Projects/padtime/node_modules/netlify-cli/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js:157:16)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at processTicksAndRejections (node:internal/process/task_queues:82:21)

System:
OS: macOS 14.1.2
CPU: (8) arm64 Apple M2
Binaries:
Node: 18.16.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 9.5.1 - /usr/local/bin/npm
Browsers:
Chrome: 124.0.6367.156
Safari: 17.1.2
npmGlobalPackages:
netlify-cli: 13.2.2

Configuration

more info on configuring this file: https://www.netlify.com/docs/netlify-toml-reference/

[build]
command = "npm run build"
functions = "netlify/functions"
publish = "dist"

(optional) Settings for Netlify Dev

[dev]
command = "npm run dev" # Command to start your dev server

port = 3000 # Port that the dev server will be listening on

publish = "dist" # Folder with the static content for _redirect file

Netlify Image CDN (https://docs.netlify.com/image-cdn/overview/)

[images]

* Allow Convex instances for prod and local dev

* Allow Clerk's image server for when user image comes from Google OAuth

remote_images = ["https://[a-z0-9-]+.convex.cloud/api/storage/.+", "https://images.clerk.dev/.+"]

[[edge_functions]]
function = "rendermanifest"
path = "/webmanifest/*"

[[edge_functions]]
function = "ogImage"
path = "/ogImage"

[[edge_functions]]
function = "touchicon"
path = "/touchicon/*"

[[plugins]]
package = "netlify-plugin-playwright-cache"

[[plugins]]
package = "netlify-plugin-ttl-cache"
[plugins.inputs]
path = "build"
ttl = 30

[[redirects]]
from = "/site/*"
to = "https://gotwonder-home.webflow.io/:splat"
status = 200
force = true

[functions]
external_node_modules = ["playwright-core", "playwright-aws-lambda","chrome-aws-lambda"]

Environment

envinfo not found

@magicseth magicseth added the type: bug code to address defects in shipped code label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

1 participant