.env, qoc

This commit is contained in:
Timur Ercan
2022-11-19 20:28:34 +01:00
parent 9615a53d65
commit afc6538792
2 changed files with 12 additions and 18 deletions

17
.env
View File

@ -1,7 +1,14 @@
# Environment variables declared in this file are automatically made available to Prisma. # Database
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema DATABASE_URL="postgresql://postgres:postgres@localhost:5432/documenso_live?schema=public"
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB. # Host
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings NEXT_PUBLIC_WEBAPP_URL='http://localhost:3000'
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/documenso_live?schema=public" # Email
EMAIL_FROM='notifications@yourselfhostedcal.com'
EMAIL_SERVER_HOST='smtp.office365.com'
EMAIL_SERVER_PORT=587
EMAIL_SERVER_USER=''
EMAIL_SERVER_PASSWORD=''
# API Keys

View File

@ -1,13 +0,0 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from 'next'
type Data = {
name: string
}
export default function handler(
req: NextApiRequest,
res: NextApiResponse<Data>
) {
res.status(200).json({ name: 'John Doe' })
}