-
Notifications
You must be signed in to change notification settings - Fork 125
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
How do I use clinic.js with nuxt? #455
Comments
That's correct, but you need to consider this will evaluate the |
Yes I am aware, but those commands give me empty results. |
Try changing it to: $ clinic doctor --autocannon [ -d 30 -c 100 /jobs ] -- node .nuxt/dist/server/server.js |
Sorry for the delay, was busy the last week. I get the same empty result with that command. |
can you create a minimal reproducible code? |
same issue, after ctrl+c got error
|
Sorry for the delay https://github.com/sjahns/clinic-test I just created an empty nuxt project and tried to use clinic doctor. Same result, as in empty result. This is Nuxt 2.17 though. |
I'm having this issue by running any app with clinic doctor. tried it with NestJs and NodeJs. Even I get it while running the official sample.
|
I want to use clinic js for a nuxt application but have so far been unable to get it to work. I am at a loss at what the command has to look like. From what I have seen I need to give clinic a js file to execute.
I prepare a build with npm run build and then how do I continue? The only way I got something other than an error was
clinic doctor -- node .nuxt/dist/server/server.js
but that gives an empty analysis. How do I tell clinic js to analyse the page that I would find under "localhost:3000/jobs" for example?
I tried things like
clinic doctor --on-port 'wrk http://localhost:$PORT/jobs' -- node .nuxt/dist/server/server.js'
clinic doctor --autocannon [ -m GET 'http://localhost:$PORT/jobs' ] -- node .nuxt/dist/server/server.js
But again I am not even sure if that is the correct file.
Thanks.
Environment
The text was updated successfully, but these errors were encountered: