@@ -15,15 +15,15 @@ Starts a local development server that will watch your files and automatically r
1515Almost always you will need to have static files in your emails, and seeing
1616them on the preview server without having to first host on a CDN is very helpful.
1717
18- We do allow for this, and currently, you can place your files inside of a ` static `
19- directory inside of your ` emails ` directory.
18+ We do allow for this, and currently, you can place your files inside a ` static `
19+ directory inside your ` emails ` directory.
2020
2121This does adjust to your ` --dir ` option, so if your ` emails ` directory was inside
22- of ` ./src/emails ` , you would place your static files inside of ` ./src/emails/static ` .
22+ ` ./src/emails ` , you would place your static files inside ` ./src/emails/static ` .
2323
2424These static files are directly served from our preview server by looking into the
2525requests made into that end with ` /static ` (i.e. ` http://localhost:3000/static/... ` ) and serving the files at that point,
26- this also allows for you to have images inside of your emails like so:
26+ this also allows for you to have images inside your emails like so:
2727
2828``` jsx
2929export default Email (props) {
@@ -42,7 +42,7 @@ export default Email(props) {
4242</Info >
4343
4444Of curse, more often than not you will need to host your images on a CDN, so we recommend
45- you change the ` src ` to the CDN's base url based on the environment like:
45+ you change the ` src ` to the CDN's base URL based on the environment like:
4646
4747``` jsx
4848const baseURL = process .env .NODE_ENV === ' production'
@@ -107,7 +107,7 @@ we account for two heuristics to determine weather or not we should
107107include it:
108108
1091091 . If file has ` .js, .jsx or .tsx ` file extensions
110- 2 . If the file contains a ` export default ` expression by matching with the regex <br />
110+ 2 . If the file contains a ` export default ` expression by matching with the regex<br />
111111` /\bexport\s*default\b/gm `
112112
113113These can certainly fail as they are only heuristics, so if you do find
@@ -135,7 +135,7 @@ Copies the preview app for onto `.react-email` and builds it.
135135
136136## ` email start `
137137
138- Runs the built preview app that is inside of ` .react-email ` .
138+ Runs the built preview app that is inside ` .react-email ` .
139139
140140## ` email export `
141141
0 commit comments