Can codegen put pages in a different directory than components

Is there a way we can have Page components on a different folder than ‘components’ when using codegen?

Hi @united_alligator,
I think you can change it through srcDir property in plasmic.json file provided by codegen.

https://docs.plasmic.app/learn/plasmic-json/#srcdir

But that will put both ‘components’ and ‘page’ components, would be nice if we can separate them into folders to have it more organized on code

Hmm, Are you using Plain React?

yes

you can move the components after sync and then run plasmic fix-imports again to detect where you’ve moved them