headstartwp icon indicating copy to clipboard operation
headstartwp copied to clipboard

`next start path-to-project` breaks config loading.

Open nicholasio opened this issue 10 months ago • 3 comments

Describe the bug

Because next start path-to-project apparentlys makes process.cwd() be where the next command was executed from, it breaks config loading.

I'm not sure if we can actually fix this, maybe we just need to document that next path-to-project isn't supported by HeadstartWP

Steps to Reproduce

  1. Do a build
  2. From the root of the monorepo run next start projects/wp-nextjs
  3. See an error about the config.
  4. Now run next start directly in projects/wp-nextjs and there's not issue.

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

nicholasio avatar Apr 08 '24 21:04 nicholasio