Disabled email
This commit is contained in:
parent
b7bc1f17c4
commit
0a45ebb134
|
@ -17,7 +17,7 @@ import { Logo } from "./components/Logo";
|
||||||
import { Icon } from "./components/Icon";
|
import { Icon } from "./components/Icon";
|
||||||
|
|
||||||
export default buildConfig({
|
export default buildConfig({
|
||||||
serverURL: "http://localhost:3000",
|
serverURL: "https://dashboard.accords-library.com",
|
||||||
admin: {
|
admin: {
|
||||||
user: Users.slug,
|
user: Users.slug,
|
||||||
components: { graphics: { Logo, Icon } },
|
components: { graphics: { Logo, Icon } },
|
||||||
|
|
|
@ -13,22 +13,6 @@ app.get("/", (_, res) => {
|
||||||
const start = async () => {
|
const start = async () => {
|
||||||
// Initialize Payload
|
// Initialize Payload
|
||||||
await payload.init({
|
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,
|
secret: process.env.PAYLOAD_SECRET,
|
||||||
mongoURL: process.env.MONGODB_URI,
|
mongoURL: process.env.MONGODB_URI,
|
||||||
express: app,
|
express: app,
|
||||||
|
@ -40,7 +24,7 @@ const start = async () => {
|
||||||
// Add your own express routes here
|
// Add your own express routes here
|
||||||
app.use("/public", express.static(path.join(__dirname, "../public")));
|
app.use("/public", express.static(path.join(__dirname, "../public")));
|
||||||
|
|
||||||
app.listen(3000);
|
app.listen(process.env.PAYLOAD_PORT);
|
||||||
};
|
};
|
||||||
|
|
||||||
start();
|
start();
|
||||||
|
|
Loading…
Reference in New Issue