From 0a45ebb13465a40cfd820341097f12f02b7f71ea Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Sat, 22 Jul 2023 21:12:41 +0200 Subject: [PATCH] Disabled email --- src/payload.config.ts | 2 +- src/server.ts | 18 +----------------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/payload.config.ts b/src/payload.config.ts index d80e768..0bb4463 100644 --- a/src/payload.config.ts +++ b/src/payload.config.ts @@ -17,7 +17,7 @@ import { Logo } from "./components/Logo"; import { Icon } from "./components/Icon"; export default buildConfig({ - serverURL: "http://localhost:3000", + serverURL: "https://dashboard.accords-library.com", admin: { user: Users.slug, components: { graphics: { Logo, Icon } }, diff --git a/src/server.ts b/src/server.ts index 1e08681..26b7ea2 100644 --- a/src/server.ts +++ b/src/server.ts @@ -13,22 +13,6 @@ app.get("/", (_, res) => { const start = async () => { // Initialize Payload await payload.init({ - email: { - transportOptions: { - host: process.env.SMTP_HOST, - auth: { - user: process.env.SMTP_USER, - pass: process.env.SMTP_PASS, - }, - port: 587, - secure: true, - tls: { - rejectUnauthorized: false, - }, - }, - fromName: "hello", - fromAddress: "hello@example.com", - }, secret: process.env.PAYLOAD_SECRET, mongoURL: process.env.MONGODB_URI, express: app, @@ -40,7 +24,7 @@ const start = async () => { // Add your own express routes here app.use("/public", express.static(path.join(__dirname, "../public"))); - app.listen(3000); + app.listen(process.env.PAYLOAD_PORT); }; start();