This project powers Dovetail's public marketing website at dovetailapp.com. It includes the marketing pages, help articles, terms and policies, and more.
This project is based on Gatsby. To get started, run:
yarn install
yarn start
Note: You must use Yarn at the moment due to NPM bugs.
Some React components have stories. To run storybook:
yarn run storybook
TypeScript interfaces for queries can be generated via:
yarn generate:types
When to run:
- After modifying GraphQL queries.
- After adding/removing frontmatter (this also requires restarting Gatsby).
Requirements:
- Gatsby actively serving http://localhost:8000/___graphql.
- GraphQL queries must be named.
- GraphQL queries must use the
graphql
tagged template literal tag.
The types are placed in the @heydovetail/website/graphql/types
module.
The build can be configured using the following environment variables:
GATSBY_BASE_URL
PREVENT_CRAWLING
SENTRY_DSN
SENTRY_ENVIRONMENT
SENTRY_RELEASE
These are configured automatically during CI deployment, however, GATSBY_BASE_URL
is accessed in React TypeScript, so needs to be included in a .env.development
file in the root.
We have published our marketing website on GitHub as a helpful resource for those building projects with Gatsby, however, this website’s branding, style, wording, and images are licensed under a Creative Commons Attribution-NonCommercial 3.0 Australia License and may not be used for commercial use.