-
Notifications
You must be signed in to change notification settings - Fork 83
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
ctx.nuxt does not exist when build: false in setup #936
base: main
Are you sure you want to change the base?
Conversation
Thank You so much for this @Al-Rozhkov. I've been wondering why I've unable to run my tests for a while without any luck. @danielroe any chance this gets reviewed soon? Many thanks ππ½ |
src/core/server.ts
Outdated
@@ -54,7 +54,7 @@ export async function startServer(options: StartServerOptions = {}) { | |||
} | |||
else { | |||
ctx.serverProcess = execa('node', [ | |||
resolve(ctx.nuxt!.options.nitro.output!.dir!, 'server/index.mjs'), | |||
resolve(ctx.options.nuxtConfig.nitro.output!.dir!, 'server/index.mjs'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should prioritize ctx.nuxt if it exists
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thank you for quick reply.
Would you be able to add a test in |
Thank you π Can you explain a bit about why you would do this rather than passing that config to setup? |
I wasn't sure how to build Nuxt manually and make setup use exact that build. I would appreciate your advice. Also not sure why windows tests failed. |
π Linked issue
Resolves #918
β Type of change
π Description