Skip to content

Commit

Permalink
🎨 fix prettier format
Browse files Browse the repository at this point in the history
  • Loading branch information
fredk3 committed Mar 21, 2024
1 parent 6d228e3 commit 95df676
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
16 changes: 8 additions & 8 deletions apps/desktop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## How to run the project

1. Build the nextjs app :

```bash
# go to the root
cd ../..
Expand All @@ -12,30 +12,30 @@
npx turbo run build --filter web
```

You may get an error when building the app,
for that you can go to the web folder and build it manuaally :
You may get an error when building the app,
for that you can go to the web folder and build it manuaally :

```bash
cd apps/web
npm run prefetch:networks
npm run build
```

2. Export the built files from the next app :

```bash
cd apps/web
npm run prepare-electron
```

3. Run the desktop project :
3. Run the desktop project :

```bash
npx electron index.js
```

4. (Optional) Build and release the project :
4. (Optional) Build and release the project :

```bash
TODESKTOP_ACCESS_TOKEN=<token> TODESKTOP_EMAIL=<email> todesktop build
```
```
5 changes: 4 additions & 1 deletion apps/web/app/(register)/register/send-email.action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import { Resend } from "resend";

export async function sendEmail(values: RegisterFormValues) {
// Don't send emails on DEV to avoid going over the plan
if (process.env.NODE_ENV !== "development" && env.NEXT_PUBLIC_TARGET !== "electron") {
if (
process.env.NODE_ENV !== "development" &&
env.NEXT_PUBLIC_TARGET !== "electron"
) {
const resend = new Resend(env.RESEND_API_KEY);

await resend.emails.send({
Expand Down

0 comments on commit 95df676

Please sign in to comment.