Skip to content

Commit 782efaf

Browse files
Drop @react-email/preview-server from dependencies (#153)
* Drop `@react-email/preview-server` from dependencies Which shipped with a lot of transitive dependencies and it's own next version (16.1.x) Add a very lightweight development only email preview using `@react-email/components` * fix biome warnings * fix biome * fixed CR issue
1 parent 54978b2 commit 782efaf

18 files changed

Lines changed: 2126 additions & 2699 deletions

File tree

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,11 +356,7 @@ Templates are in `src/lib/emails/` as React components:
356356

357357
### Previewing Templates
358358

359-
```bash
360-
npm run email:dev
361-
```
362-
363-
Opens the [react-email](https://react.email) dev server with all templates and mock data for live preview.
359+
Run the storefront in development (`npm run dev`) and visit [http://localhost:3001/dev/emails](http://localhost:3001/dev/emails). Each template is rendered with sample data using `@react-email/render`; the route is gated to non-production environments.
364360

365361
### How It Works
366362

emails/order-canceled.tsx

Lines changed: 0 additions & 29 deletions
This file was deleted.

emails/order-confirmation.tsx

Lines changed: 0 additions & 64 deletions
This file was deleted.

emails/password-reset.tsx

Lines changed: 0 additions & 7 deletions
This file was deleted.

emails/shipment-shipped.tsx

Lines changed: 0 additions & 36 deletions
This file was deleted.

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import createNextIntlPlugin from "next-intl/plugin";
55
const withNextIntl = createNextIntlPlugin();
66

77
const nextConfig: NextConfig = {
8-
allowedDevOrigins: ["shop.lvh.me", "*.trycloudflare.com"],
8+
allowedDevOrigins: ["shop.lvh.me", "*.trycloudflare.com", "192.168.33.13"],
99
env: {
1010
NEXT_PUBLIC_SENTRY_DSN: process.env.SENTRY_DSN || "",
1111
},

0 commit comments

Comments
 (0)