Compare commits
2 Commits
5c41588249
...
38168db452
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
38168db452 | ||
|
|
c9227cf9b9 |
@@ -15,7 +15,8 @@ PRISMA_HIDE_UPDATE_MESSAGE=true
|
|||||||
# Ordered by how verbose they are: trace | debug | info | warn | error | silent
|
# Ordered by how verbose they are: trace | debug | info | warn | error | silent
|
||||||
# LOG_LEVEL=debug
|
# LOG_LEVEL=debug
|
||||||
|
|
||||||
NAME=Ahmed Al-Taiar
|
FIRST_NAME=Ahmed
|
||||||
|
LAST_NAME=Al-Taiar
|
||||||
|
|
||||||
GMAIL=example@gmail.com
|
GMAIL=example@gmail.com
|
||||||
GMAIL_SMTP_PASSWORD=chan geme xyza bcde
|
GMAIL_SMTP_PASSWORD=chan geme xyza bcde
|
||||||
|
|||||||
@@ -3,7 +3,8 @@
|
|||||||
# PRISMA_HIDE_UPDATE_MESSAGE=true
|
# PRISMA_HIDE_UPDATE_MESSAGE=true
|
||||||
# LOG_LEVEL=trace
|
# LOG_LEVEL=trace
|
||||||
|
|
||||||
NAME=Firstname Lastname
|
FIRST_NAME=firstname
|
||||||
|
LAST_NAME=lastname
|
||||||
|
|
||||||
GMAIL=example@gmail.com
|
GMAIL=example@gmail.com
|
||||||
GMAIL_SMTP_PASSWORD=chan geme xyza bcde
|
GMAIL_SMTP_PASSWORD=chan geme xyza bcde
|
||||||
|
|||||||
@@ -47,7 +47,8 @@ RUN yarn rw build api
|
|||||||
# -------------------
|
# -------------------
|
||||||
FROM api_build as web_build_with_prerender
|
FROM api_build as web_build_with_prerender
|
||||||
|
|
||||||
ARG NAME
|
ARG FIRST_NAME
|
||||||
|
ARG LAST_NAME
|
||||||
ARG API_ADDRESS_PROD
|
ARG API_ADDRESS_PROD
|
||||||
ARG API_ADDRESS_DEV
|
ARG API_ADDRESS_DEV
|
||||||
|
|
||||||
@@ -58,7 +59,8 @@ RUN yarn rw build web
|
|||||||
# ---------
|
# ---------
|
||||||
FROM base as web_build
|
FROM base as web_build
|
||||||
|
|
||||||
ARG NAME
|
ARG FIRST_NAME
|
||||||
|
ARG LAST_NAME
|
||||||
ARG API_ADDRESS_PROD
|
ARG API_ADDRESS_PROD
|
||||||
ARG API_ADDRESS_DEV
|
ARG API_ADDRESS_DEV
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ const transporter = nodemailer.createTransport({
|
|||||||
|
|
||||||
export const sendEmail = async ({ to, subject, text, html }: Options) => {
|
export const sendEmail = async ({ to, subject, text, html }: Options) => {
|
||||||
return await transporter.sendMail({
|
return await transporter.sendMail({
|
||||||
from: `"${process.env.NAME} (noreply)" <${process.env.GMAIL}>`,
|
from: `"${process.env.FIRST_NAME} ${process.env.LAST_NAME} (noreply)" <${process.env.GMAIL}>`,
|
||||||
to: Array.isArray(to) ? to : [to],
|
to: Array.isArray(to) ? to : [to],
|
||||||
subject,
|
subject,
|
||||||
text,
|
text,
|
||||||
|
|||||||
@@ -6,10 +6,10 @@
|
|||||||
# https://redwoodjs.com/docs/app-configuration-redwood-toml
|
# https://redwoodjs.com/docs/app-configuration-redwood-toml
|
||||||
|
|
||||||
[web]
|
[web]
|
||||||
title = "${NAME}"
|
title = "${FIRST_NAME} ${LAST_NAME}"
|
||||||
port = 8910
|
port = 8910
|
||||||
apiUrl = "/api"
|
apiUrl = "/api"
|
||||||
includeEnvironmentVariables = ["NAME", "API_ADDRESS_PROD", "API_ADDRESS_DEV"]
|
includeEnvironmentVariables = ["FIRST_NAME", "LAST_NAME", "API_ADDRESS_PROD", "API_ADDRESS_DEV"]
|
||||||
[generate]
|
[generate]
|
||||||
tests = false
|
tests = false
|
||||||
stories = false
|
stories = false
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ const ContactCard = ({ portraitUrl }: ContactCardProps) => {
|
|||||||
<img
|
<img
|
||||||
className="contact-me-image aspect-portrait object-cover"
|
className="contact-me-image aspect-portrait object-cover"
|
||||||
src={portraitUrl}
|
src={portraitUrl}
|
||||||
alt={`${process.env.NAME}`}
|
alt={`${process.env.FIRST_NAME} ${process.env.LAST_NAME}`}
|
||||||
/>
|
/>
|
||||||
</figure>
|
</figure>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ const PortraitForm = (props: PortraitFormProps) => {
|
|||||||
<img
|
<img
|
||||||
className="aspect-portrait max-w-2xl rounded-xl object-cover"
|
className="aspect-portrait max-w-2xl rounded-xl object-cover"
|
||||||
src={props.portrait?.fileId}
|
src={props.portrait?.fileId}
|
||||||
alt={`${process.env.NAME} Portrait`}
|
alt={`${process.env.FIRST_NAME} Portrait`}
|
||||||
/>
|
/>
|
||||||
<div className="flex justify-center">
|
<div className="flex justify-center">
|
||||||
<button
|
<button
|
||||||
@@ -150,7 +150,7 @@ const PortraitForm = (props: PortraitFormProps) => {
|
|||||||
<img
|
<img
|
||||||
className="aspect-portrait max-w-2xl rounded-xl object-cover"
|
className="aspect-portrait max-w-2xl rounded-xl object-cover"
|
||||||
src={fileId}
|
src={fileId}
|
||||||
alt={`${process.env.NAME} Portrait`}
|
alt={`${process.env.FIRST_NAME} Portrait`}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{fileId && (
|
{fileId && (
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ const NavbarLayout = ({ children }: NavbarLayoutProps) => {
|
|||||||
to={routes.home()}
|
to={routes.home()}
|
||||||
className="btn btn-ghost hidden font-syne text-xl sm:flex"
|
className="btn btn-ghost hidden font-syne text-xl sm:flex"
|
||||||
>
|
>
|
||||||
{process.env.NAME}
|
{process.env.FIRST_NAME + ' ' + process.env.LAST_NAME}
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className="navbar-center">
|
<div className="navbar-center">
|
||||||
@@ -118,7 +118,7 @@ const NavbarLayout = ({ children }: NavbarLayoutProps) => {
|
|||||||
to={routes.home()}
|
to={routes.home()}
|
||||||
className="btn btn-ghost font-syne text-xl sm:hidden"
|
className="btn btn-ghost font-syne text-xl sm:hidden"
|
||||||
>
|
>
|
||||||
{process.env.NAME}
|
{process.env.FIRST_NAME + ' ' + process.env.LAST_NAME}
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className="navbar-center hidden lg:flex">
|
<div className="navbar-center hidden lg:flex">
|
||||||
|
|||||||
Reference in New Issue
Block a user