json-server icon indicating copy to clipboard operation
json-server copied to clipboard

delay [ms] is not working for me......

Open TahaSahraei opened this issue 1 year ago • 5 comments

wehn i try to use delay option in our project i got this error?

Unknown option '--delay', how i can fix it.

TahaSahraei avatar Jun 08 '24 07:06 TahaSahraei

It's "normal". They removed the --delay in the CLI for no reason and tell you to use the delay option of the network tab in your browser. But it's not a really good idea to have delay in the back-end. So you can come back to the version 0.17.4 to get back this feature :)

Quentin-L-Inge avatar Jun 17 '24 09:06 Quentin-L-Inge

I literally chose to use this project because of the delay feature for demos and being able to change it so fast. RIP

KevinVandy avatar Jul 14 '24 18:07 KevinVandy

I use this library in e2e tests in CI and now I cannot add delay because of v1 is not supported it

krutoo avatar Jan 20 '25 15:01 krutoo

@typicode Can we return this feature? It is really useful for e2e-tests and manual checking state visualization

krutoo avatar Jan 24 '25 09:01 krutoo

I've made a copy of the project on it's version 1.0.0-beta.3 just to include this option.

Fell free to use it on your projects or copy (or whatever): npm i @paristech/json-server -D

Alex-Paris avatar Feb 28 '25 02:02 Alex-Paris