JarWarren
Help understanding the difference between `npx nx start` and `yarn command:prod`
@charles Yeah. I wanted to add some landscaping-specific stuff to all workspaces. Adding them as Custom seemed like a smaller lift initially, since most of the work would've already been done for me.
In the end it was probably better to just go and add them as official Standard objects tho
17 replies
Help understanding the difference between `npx nx start` and `yarn command:prod`
Well I never found a solution. I just ended up taking a different, better approach.
I wanted to add some extra objects (beyond People, Companies, Opportunities) whenever a new workspace was added.
Originally I generated them as Custom objects in WorkspaceManagerService
activateWorkspace
. It worked perfectly when I ran the webapp, but future migrations wouldn't be able to work (see above, circular dependency, etc).
In the end I added my new objects as true Standard objects instead. I used https://discord.com/channels/1130383047699738754/1254498631680131145 as a reference for how to do it.17 replies
Help understanding the difference between `npx nx start` and `yarn command:prod`
@charles i ended up finding a different way of accomplishing what I wanted to. Thanks for looking into it!
I never did find out why the circular dependency only occurred in CommandModule and not AppModule but hopefully it never will matter haha
17 replies
Help understanding the difference between `npx nx start` and `yarn command:prod`
@charles Ohh ok, so it is the different entrypoints. I ran it with
nx
and got the same issue, as you expected.
WebStorm adds ellipses to the middle of each row but this seems to be all of the relevant JS in the stack trace.
Not sure why the circular dependency only occurs on one entrypoint and not the other - or why forwardRef
doesn't fix it. Hopefully this is a simple fix? I just wanted to add one dependency haha. Thanks a ton for taking a look!17 replies
Best practice to periodically wipe the database
@charles thanks! Are these crons available in the repo somewhere or is this a custom setup you guys have? Any info you guys can give on setting up a demo environment would be helpful. I'd like to do something similar
4 replies