-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(api): ✨ replace Brevo with Resend
As a mail sender for contact form, switch to Resend ✅ Closes: #14
- Loading branch information
1 parent
1939033
commit a181b41
Showing
9 changed files
with
115 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
import type { Config } from 'drizzle-kit' | ||
import type { Config } from "drizzle-kit"; | ||
|
||
const { CLOUDFLARE_ACCOUNT_ID, D1_DB_ID, D1_DB_API_TOKEN, LOCAL_DB_PATH } = | ||
import.meta.env | ||
process.env; | ||
|
||
export default LOCAL_DB_PATH | ||
? ({ | ||
schema: './src/db/schema/index.ts', | ||
out: './src/db/migrations', | ||
dialect: 'sqlite', | ||
schema: "./src/db/schema/index.ts", | ||
out: "./src/db/migrations", | ||
dialect: "sqlite", | ||
dbCredentials: { | ||
url: LOCAL_DB_PATH, | ||
}, | ||
} satisfies Config) | ||
: ({ | ||
schema: './src/db/schema/index.ts', | ||
out: './src/db/migrations', | ||
dialect: 'sqlite', | ||
driver: 'd1-http', | ||
schema: "./src/db/schema/index.ts", | ||
out: "./src/db/migrations", | ||
dialect: "sqlite", | ||
driver: "d1-http", | ||
dbCredentials: { | ||
accountId: CLOUDFLARE_ACCOUNT_ID!, | ||
databaseId: D1_DB_ID!, | ||
token: D1_DB_API_TOKEN!, | ||
}, | ||
} satisfies Config) | ||
} satisfies Config); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.