Skip to content

Commit

Permalink
Merge pull request #12 from johnnygerard/vercel
Browse files Browse the repository at this point in the history
ci: update Vercel config
  • Loading branch information
johnnygerard authored Jul 25, 2024
2 parents ee46566 + 04fd717 commit ec20b66
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Frontend Mentor | Contact form

This is my solution to the [Contact form challenge](https://www.frontendmentor.io/challenges/contact-form--G-hYlqKJj) from [Frontend Mentor](https://www.frontendmentor.io/).
On form submission, emails are sent but not delivered to their recipient. Instead, they are intercepted by the [Ethereal](https://ethereal.email/) fake SMTP service.
Messages self-destruct after a few hours. You can access the Ethereal email by visiting the public URL in the browser console.
This is my solution to the [Contact form challenge](https://www.frontendmentor.io/challenges/contact-form--G-hYlqKJj) from [Frontend Mentor](https://www.frontendmentor.io/).

On form submission, emails are sent but not delivered to their recipient. Instead, they are intercepted by the [Ethereal](https://ethereal.email/) fake SMTP service and
messages self-destruct after a few hours. You can access the Ethereal email by visiting the public URL in the browser console.

[![project status](https://img.shields.io/badge/status-solution%20published-success?style=for-the-badge)](https://www.frontendmentor.io/solutions/full-stack-contact-form-with-ethereal-fake-smtp-service-dXGW_-jm12)

Expand All @@ -29,11 +30,13 @@ Note: The Heroku web dyno (container) sleeps after 30 minutes of inactivity (see

## Key Features

- [Angular reactive forms](https://angular.dev/guide/forms/reactive-forms)
- Mail service with [Nodemailer](https://nodemailer.com/) and [Ethereal](https://ethereal.email/)
- CORS-enabled REST API
- JSON schema validation with [Ajv](https://ajv.js.org/)
- [Angular prerendering (SSG)](https://angular.dev/guide/prerendering)
- Responsive design
- Custom form controls
- CSS transitions and [Angular animations](https://angular.dev/guide/animations)
- End-to-end testing with [Cypress](https://www.cypress.io/)

Expand Down
13 changes: 12 additions & 1 deletion vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,16 @@
"buildCommand": "cd client && npm run vercel:build",
"framework": "angular",
"installCommand": "npm update --global npm && cd client && npm ci",
"outputDirectory": "client/dist/fem-contact-form/browser"
"outputDirectory": "client/dist/fem-contact-form/browser",
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "x-robots-tag",
"value": "none"
}
]
}
]
}

0 comments on commit ec20b66

Please sign in to comment.