Steps to run local dev server #1814
-
After I opened a ticket for a new idea now I tried to implement the idea. Steps:
After 1 minute server listening on localhost:3000 and I can see the templates. When I change some code inside "packages/react-emails" nothing happends. I read also #483 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
First things first, the discussion you want to implement needs a proper path of implementation where we agree with, so you don't waste any time making a PR that isn't going to be merged. And, as things were left there, you haven't convinced us that what we already have isn't enough. Secondly, the dev command is for development of the demo emails, not for preview server development. To run an equivalent of |
Beta Was this translation helpful? Give feedback.
First things first, the discussion you want to implement needs a proper path of implementation where we agree with, so you don't waste any time making a PR that isn't going to be merged. And, as things were left there, you haven't convinced us that what we already have isn't enough.
Secondly, the dev command is for development of the demo emails, not for preview server development. To run an equivalent of
next dev
for the preview server inside the demo, you can runpnpm tsx ../../packages/react-email/src/cli/index.ts dev
insideapps/demo
and it will work as you are expecting.