From 865f4bf545d7d4eb9bf895996796b44c889d50c2 Mon Sep 17 00:00:00 2001 From: usnlmc07m07gdy3g Date: Tue, 9 Jul 2019 17:00:18 -0500 Subject: [PATCH 01/17] initial commit expanding deploy recipe --- docs/docs/recipes.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index e186488d0af2b..472213536f1ed 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -122,8 +122,32 @@ To wrap pages with layouts, use normal React components. ## Deploying -Showtime. +Showtime. Once you are happy with your site, you are ready to go live with it! + +## Prerequisites +-A Gatsby site ([check out the Tutorial if you don't yet have a Gatsby site](/tutorial/part-zero)) +-The [Gatsby CLI](docs/gatsby-cli) + +## Directions +1. Stop your development server if it is running (`Ctrl + C` on your command line in most cases) +2. If you want the standard path prefix for your site (`/`), run `gatsby build` using the Gatsby CLI on the command line. The files you need to copy to your server will now be in the `public` folder. +3. If you'd like to have the index of your site be at a path other than `/`, set a path prefix by adding the following to your `gatsby-config.js` and replacing `yourpathprefix` with your desired path prefix: +```js:title=gatsby-config.js +module.exports = { + pathPrefix: `/yourpathprefix` +} +``` +There are a few reasons you might want to do this--for instance, if you are hosting a blog built with Gatsby on a domain where you are running another site not built on Gatsby. The main site would direct to `example.com`, and by setting a path prefix you can have `example.com/blog` load your Gatsby site directly. +4. Once your path prefix is set in your `gatsby-config.js`, run `gatsby build`, but make sure to add the `--prefix-paths` flag, like so: + +```shell +gatsby build --prefix-paths +``` +With this flag added, Gatsby will automatically add your path prefix to the beginning of all of your site's URLs and will automatically update all `` tags as well. +5. It is generally helpful to make sure that your site looks the same when running `gatsby build` as it did when running `gatsby develop`. By running `gatsby serve` after you build your site, you can test out (and debug if necessary) the finished product before deploying it live. +6. From here, you can either copy the files in your `public` folder directly to your server, or deploy to one of many popular servers. Check out the [deployment docs for specific hosting platforms and how to deploy to them](/docs/preparing-for-deployment). +##Additional Resources - Walk through building and deploying an example site in [tutorial part one](/tutorial/part-one/#deploying-a-gatsby-site) - Learn how to make sure your site is configured properly to be [searchable, shareable, and properly navigable](/docs/preparing-for-site-launch/) - Learn about [performance optimization](/docs/performance/) From 8d933e96c87050ba72d825bb3554ae762ae12307 Mon Sep 17 00:00:00 2001 From: usnlmc07m07gdy3g Date: Wed, 10 Jul 2019 11:32:07 -0500 Subject: [PATCH 02/17] finished expanding deploy recipe --- docs/docs/recipes.md | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index 472213536f1ed..4b74ec45a798c 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -124,34 +124,47 @@ To wrap pages with layouts, use normal React components. Showtime. Once you are happy with your site, you are ready to go live with it! -## Prerequisites --A Gatsby site ([check out the Tutorial if you don't yet have a Gatsby site](/tutorial/part-zero)) --The [Gatsby CLI](docs/gatsby-cli) +#### Prerequisites +-A Gatsby site ([check out the Tutorial if you don't yet have a Gatsby site](/tutorial/)) +-The [Gatsby CLI](/docs/gatsby-cli) -## Directions +#### Directions 1. Stop your development server if it is running (`Ctrl + C` on your command line in most cases) + 2. If you want the standard path prefix for your site (`/`), run `gatsby build` using the Gatsby CLI on the command line. The files you need to copy to your server will now be in the `public` folder. + +```shell +gatsby build +``` + 3. If you'd like to have the index of your site be at a path other than `/`, set a path prefix by adding the following to your `gatsby-config.js` and replacing `yourpathprefix` with your desired path prefix: ```js:title=gatsby-config.js module.exports = { pathPrefix: `/yourpathprefix` } ``` -There are a few reasons you might want to do this--for instance, if you are hosting a blog built with Gatsby on a domain where you are running another site not built on Gatsby. The main site would direct to `example.com`, and by setting a path prefix you can have `example.com/blog` load your Gatsby site directly. -4. Once your path prefix is set in your `gatsby-config.js`, run `gatsby build`, but make sure to add the `--prefix-paths` flag, like so: +There are a few reasons you might want to do this--for instance, if you are hosting a blog built with Gatsby on a domain where you are running another site not built on Gatsby. The main site would direct to `example.com`, and by setting a path prefix you can have `example.com/blog` load your Gatsby site directly. + +Once your path prefix is set in your `gatsby-config.js`, run `gatsby build`, but make sure to add the `--prefix-paths` flag, like so: ```shell gatsby build --prefix-paths ``` -With this flag added, Gatsby will automatically add your path prefix to the beginning of all of your site's URLs and will automatically update all `` tags as well. -5. It is generally helpful to make sure that your site looks the same when running `gatsby build` as it did when running `gatsby develop`. By running `gatsby serve` after you build your site, you can test out (and debug if necessary) the finished product before deploying it live. -6. From here, you can either copy the files in your `public` folder directly to your server, or deploy to one of many popular servers. Check out the [deployment docs for specific hosting platforms and how to deploy to them](/docs/preparing-for-deployment). -##Additional Resources +With this flag added, Gatsby will automatically add your path prefix to the beginning of all of your site's URLs and will automatically update all `` tags as well. + +4. It is generally helpful to make sure that your site looks the same when running `gatsby build` as it did when running `gatsby develop`. By running `gatsby serve` after you build your site, you can test out (and debug if necessary) the finished product before deploying it live. + +```shell +gatsby serve +``` + +5. From here, you can either copy the files in your `public` folder directly to your server, or deploy to one of many popular servers. Check out the [deployment docs for specific hosting platforms and how to deploy to them](/docs/deploying-and-hosting/). + +#### Additional Resources - Walk through building and deploying an example site in [tutorial part one](/tutorial/part-one/#deploying-a-gatsby-site) -- Learn how to make sure your site is configured properly to be [searchable, shareable, and properly navigable](/docs/preparing-for-site-launch/) - Learn about [performance optimization](/docs/performance/) -- Read about [other deployment related topics](/docs/deploying-and-hosting/) +- Read about [other deployment related topics](/docs/preparing-for-deployment/) ## Querying data From 15c310651990dbbb887ddc8d43bf5f011f906ffe Mon Sep 17 00:00:00 2001 From: gatsbybot Date: Mon, 15 Jul 2019 20:44:02 +0000 Subject: [PATCH 03/17] chore: format --- docs/docs/recipes.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index 4b74ec45a798c..1c22b3b160b25 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -122,13 +122,15 @@ To wrap pages with layouts, use normal React components. ## Deploying -Showtime. Once you are happy with your site, you are ready to go live with it! +Showtime. Once you are happy with your site, you are ready to go live with it! #### Prerequisites + -A Gatsby site ([check out the Tutorial if you don't yet have a Gatsby site](/tutorial/)) -The [Gatsby CLI](/docs/gatsby-cli) #### Directions + 1. Stop your development server if it is running (`Ctrl + C` on your command line in most cases) 2. If you want the standard path prefix for your site (`/`), run `gatsby build` using the Gatsby CLI on the command line. The files you need to copy to your server will now be in the `public` folder. @@ -138,18 +140,20 @@ gatsby build ``` 3. If you'd like to have the index of your site be at a path other than `/`, set a path prefix by adding the following to your `gatsby-config.js` and replacing `yourpathprefix` with your desired path prefix: + ```js:title=gatsby-config.js module.exports = { - pathPrefix: `/yourpathprefix` + pathPrefix: `/yourpathprefix`, } ``` + There are a few reasons you might want to do this--for instance, if you are hosting a blog built with Gatsby on a domain where you are running another site not built on Gatsby. The main site would direct to `example.com`, and by setting a path prefix you can have `example.com/blog` load your Gatsby site directly. Once your path prefix is set in your `gatsby-config.js`, run `gatsby build`, but make sure to add the `--prefix-paths` flag, like so: ```shell gatsby build --prefix-paths -``` +``` With this flag added, Gatsby will automatically add your path prefix to the beginning of all of your site's URLs and will automatically update all `` tags as well. @@ -162,6 +166,7 @@ gatsby serve 5. From here, you can either copy the files in your `public` folder directly to your server, or deploy to one of many popular servers. Check out the [deployment docs for specific hosting platforms and how to deploy to them](/docs/deploying-and-hosting/). #### Additional Resources + - Walk through building and deploying an example site in [tutorial part one](/tutorial/part-one/#deploying-a-gatsby-site) - Learn about [performance optimization](/docs/performance/) - Read about [other deployment related topics](/docs/preparing-for-deployment/) From 9c09bdff30da0d3128062ea50be4f9504dc19b6c Mon Sep 17 00:00:00 2001 From: Tom Raley Date: Mon, 15 Jul 2019 16:45:57 -0500 Subject: [PATCH 04/17] Shorten prerequisites in docs/docs/recipes.md Co-Authored-By: Marcy Sutton --- docs/docs/recipes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index 1c22b3b160b25..5c9e1d85f5433 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -126,7 +126,7 @@ Showtime. Once you are happy with your site, you are ready to go live with it! #### Prerequisites --A Gatsby site ([check out the Tutorial if you don't yet have a Gatsby site](/tutorial/)) +-A [Gatsby site](/docs/quick-start) -The [Gatsby CLI](/docs/gatsby-cli) #### Directions From 2ea97635478f26cb82ee8f3116454bf4dd643231 Mon Sep 17 00:00:00 2001 From: Tom Raley Date: Mon, 15 Jul 2019 16:46:20 -0500 Subject: [PATCH 05/17] Clean up path prefix steps docs/docs/recipes.md Co-Authored-By: Marcy Sutton --- docs/docs/recipes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index 5c9e1d85f5433..2ccd0519a1170 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -133,7 +133,7 @@ Showtime. Once you are happy with your site, you are ready to go live with it! 1. Stop your development server if it is running (`Ctrl + C` on your command line in most cases) -2. If you want the standard path prefix for your site (`/`), run `gatsby build` using the Gatsby CLI on the command line. The files you need to copy to your server will now be in the `public` folder. +2. For the standard site path at the root directory (`/`), run `gatsby build` using the Gatsby CLI on the command line. The built files will now be in the `public` folder. ```shell gatsby build From 7826a5892e7eb16d244fd148ff823f211402c0ac Mon Sep 17 00:00:00 2001 From: Tom Raley Date: Mon, 15 Jul 2019 16:46:54 -0500 Subject: [PATCH 06/17] Clean up step #3 in docs/docs/recipes.md Co-Authored-By: Marcy Sutton --- docs/docs/recipes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index 2ccd0519a1170..6e9392c34bf82 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -139,7 +139,7 @@ Showtime. Once you are happy with your site, you are ready to go live with it! gatsby build ``` -3. If you'd like to have the index of your site be at a path other than `/`, set a path prefix by adding the following to your `gatsby-config.js` and replacing `yourpathprefix` with your desired path prefix: +3. To include a site path other than `/` (such as `/site-name/`), set a path prefix by adding the following to your `gatsby-config.js` and replacing `yourpathprefix` with your desired path prefix: ```js:title=gatsby-config.js module.exports = { From 540cd279a995be0e59e3e5d605f4b323fa4f6831 Mon Sep 17 00:00:00 2001 From: Tom Raley Date: Mon, 15 Jul 2019 16:47:15 -0500 Subject: [PATCH 07/17] Clean up #4 in docs/docs/recipes.md Co-Authored-By: Marcy Sutton --- docs/docs/recipes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index 6e9392c34bf82..25a08e163005c 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -149,7 +149,7 @@ module.exports = { There are a few reasons you might want to do this--for instance, if you are hosting a blog built with Gatsby on a domain where you are running another site not built on Gatsby. The main site would direct to `example.com`, and by setting a path prefix you can have `example.com/blog` load your Gatsby site directly. -Once your path prefix is set in your `gatsby-config.js`, run `gatsby build`, but make sure to add the `--prefix-paths` flag, like so: +4. With a path prefix set in `gatsby-config.js`, run `gatsby build` with the `--prefix-paths` flag to automatically add the prefix to the beginning of all Gatsby site URLs and `` tags. ```shell gatsby build --prefix-paths From 0c2247593e9d45567374f704df714807fdf4acea Mon Sep 17 00:00:00 2001 From: Tom Raley Date: Mon, 15 Jul 2019 16:47:30 -0500 Subject: [PATCH 08/17] Clean up #5 in docs/docs/recipes.md Co-Authored-By: Marcy Sutton --- docs/docs/recipes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index 25a08e163005c..bb059f246b1a7 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -157,7 +157,7 @@ gatsby build --prefix-paths With this flag added, Gatsby will automatically add your path prefix to the beginning of all of your site's URLs and will automatically update all `` tags as well. -4. It is generally helpful to make sure that your site looks the same when running `gatsby build` as it did when running `gatsby develop`. By running `gatsby serve` after you build your site, you can test out (and debug if necessary) the finished product before deploying it live. +5. Make sure that your site looks the same when running `gatsby build` as with `gatsby develop`. By running `gatsby serve` when you build your site, you can test out (and debug if necessary) the finished product before deploying it live. ```shell gatsby serve From d5a806f9a6e54eba417185ae7d2d04eb66c6da43 Mon Sep 17 00:00:00 2001 From: Tom Raley Date: Mon, 15 Jul 2019 16:47:56 -0500 Subject: [PATCH 09/17] Shorten build/serve command in deploy recipe docs/docs/recipes.md Co-Authored-By: Marcy Sutton --- docs/docs/recipes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index bb059f246b1a7..78b31e32f24e0 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -160,7 +160,7 @@ With this flag added, Gatsby will automatically add your path prefix to the begi 5. Make sure that your site looks the same when running `gatsby build` as with `gatsby develop`. By running `gatsby serve` when you build your site, you can test out (and debug if necessary) the finished product before deploying it live. ```shell -gatsby serve +gatsby build && gatsby serve ``` 5. From here, you can either copy the files in your `public` folder directly to your server, or deploy to one of many popular servers. Check out the [deployment docs for specific hosting platforms and how to deploy to them](/docs/deploying-and-hosting/). From 7f06b040462bfdf45b26e7604c61ec7b79d5ac48 Mon Sep 17 00:00:00 2001 From: Tom Raley Date: Mon, 15 Jul 2019 16:48:11 -0500 Subject: [PATCH 10/17] Update docs/docs/recipes.md Co-Authored-By: Marcy Sutton --- docs/docs/recipes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index 78b31e32f24e0..1df6e20ddbfd7 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -170,7 +170,7 @@ gatsby build && gatsby serve - Walk through building and deploying an example site in [tutorial part one](/tutorial/part-one/#deploying-a-gatsby-site) - Learn about [performance optimization](/docs/performance/) - Read about [other deployment related topics](/docs/preparing-for-deployment/) - +- Check out the [deployment docs](/docs/deploying-and-hosting/) for specific hosting platforms and how to deploy to them ## Querying data ### The StaticQuery Component From 3939343f5062281ecf222efc3a073130925733a7 Mon Sep 17 00:00:00 2001 From: Tom Raley Date: Mon, 15 Jul 2019 16:49:48 -0500 Subject: [PATCH 11/17] Shorten path prefix deploy recipe section docs/docs/recipes.md Co-Authored-By: Marcy Sutton --- docs/docs/recipes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index 1df6e20ddbfd7..d2c9ac0a71867 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -147,7 +147,7 @@ module.exports = { } ``` -There are a few reasons you might want to do this--for instance, if you are hosting a blog built with Gatsby on a domain where you are running another site not built on Gatsby. The main site would direct to `example.com`, and by setting a path prefix you can have `example.com/blog` load your Gatsby site directly. +There are a few reasons to do this--for instance, hosting a blog built with Gatsby on a domain with another site not built on Gatsby. The main site would direct to `example.com`, and the Gatsby site with a path prefix could live at `example.com/blog`. 4. With a path prefix set in `gatsby-config.js`, run `gatsby build` with the `--prefix-paths` flag to automatically add the prefix to the beginning of all Gatsby site URLs and `` tags. From 8849e4065fbfb8a44af8e9b7f0f48dba5355400a Mon Sep 17 00:00:00 2001 From: Tom Raley Date: Mon, 15 Jul 2019 16:50:28 -0500 Subject: [PATCH 12/17] Remove actual deployment from deploy recipe docs/docs/recipes.md Co-Authored-By: Marcy Sutton --- docs/docs/recipes.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index d2c9ac0a71867..93cbd30eb29da 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -163,7 +163,6 @@ With this flag added, Gatsby will automatically add your path prefix to the begi gatsby build && gatsby serve ``` -5. From here, you can either copy the files in your `public` folder directly to your server, or deploy to one of many popular servers. Check out the [deployment docs for specific hosting platforms and how to deploy to them](/docs/deploying-and-hosting/). #### Additional Resources From d17615f713e3f1ee8253160ad5a8d6644cc341ff Mon Sep 17 00:00:00 2001 From: Tom Raley Date: Mon, 15 Jul 2019 16:50:52 -0500 Subject: [PATCH 13/17] Clean up prefix-paths section deploy recipe docs/docs/recipes.md Co-Authored-By: Marcy Sutton --- docs/docs/recipes.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index 93cbd30eb29da..8afbc3528e04b 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -155,7 +155,6 @@ There are a few reasons to do this--for instance, hosting a blog built with Gats gatsby build --prefix-paths ``` -With this flag added, Gatsby will automatically add your path prefix to the beginning of all of your site's URLs and will automatically update all `` tags as well. 5. Make sure that your site looks the same when running `gatsby build` as with `gatsby develop`. By running `gatsby serve` when you build your site, you can test out (and debug if necessary) the finished product before deploying it live. From 3c5c12a6759b18925fc2c2c45c1025d89969dc7d Mon Sep 17 00:00:00 2001 From: Tom Raley Date: Fri, 19 Jul 2019 09:29:08 -0500 Subject: [PATCH 14/17] Update deploy recipe formatting Co-Authored-By: Marcy Sutton --- docs/docs/recipes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index 8afbc3528e04b..dbb02f6ed7087 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -126,7 +126,7 @@ Showtime. Once you are happy with your site, you are ready to go live with it! #### Prerequisites --A [Gatsby site](/docs/quick-start) +- A [Gatsby site](/docs/quick-start) -The [Gatsby CLI](/docs/gatsby-cli) #### Directions From 660251e9b68200b2a361e19c5dfd66d8e5ff3782 Mon Sep 17 00:00:00 2001 From: Tom Raley Date: Fri, 19 Jul 2019 09:30:16 -0500 Subject: [PATCH 15/17] Update formatting on deploy recipe CLI bullet point Co-Authored-By: Marcy Sutton --- docs/docs/recipes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index dbb02f6ed7087..ca1ab9f840cc8 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -127,7 +127,7 @@ Showtime. Once you are happy with your site, you are ready to go live with it! #### Prerequisites - A [Gatsby site](/docs/quick-start) --The [Gatsby CLI](/docs/gatsby-cli) +- The [Gatsby CLI](/docs/gatsby-cli) installed #### Directions From a113d8cce454f2150f233fff7e3d3ea68c199caa Mon Sep 17 00:00:00 2001 From: Tom Raley Date: Fri, 19 Jul 2019 09:30:48 -0500 Subject: [PATCH 16/17] Added deploy recipe header Co-Authored-By: Marcy Sutton --- docs/docs/recipes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index ca1ab9f840cc8..f1418a8e58d49 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -123,7 +123,7 @@ To wrap pages with layouts, use normal React components. ## Deploying Showtime. Once you are happy with your site, you are ready to go live with it! - +### Preparing for deployment #### Prerequisites - A [Gatsby site](/docs/quick-start) From f5d8069212ea2b8d80afbfca8881ca0e4299f60f Mon Sep 17 00:00:00 2001 From: gatsbybot Date: Sat, 20 Jul 2019 01:06:14 +0000 Subject: [PATCH 17/17] chore: format --- docs/docs/recipes.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index c4049b655d4b4..e84c83ec906ec 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -162,7 +162,9 @@ To wrap pages with layouts, use normal React components. ## Deploying Showtime. Once you are happy with your site, you are ready to go live with it! + ### Preparing for deployment + #### Prerequisites - A [Gatsby site](/docs/quick-start) @@ -194,20 +196,19 @@ There are a few reasons to do this--for instance, hosting a blog built with Gats gatsby build --prefix-paths ``` - 5. Make sure that your site looks the same when running `gatsby build` as with `gatsby develop`. By running `gatsby serve` when you build your site, you can test out (and debug if necessary) the finished product before deploying it live. ```shell gatsby build && gatsby serve ``` - #### Additional Resources - Walk through building and deploying an example site in [tutorial part one](/tutorial/part-one/#deploying-a-gatsby-site) - Learn about [performance optimization](/docs/performance/) - Read about [other deployment related topics](/docs/preparing-for-deployment/) - Check out the [deployment docs](/docs/deploying-and-hosting/) for specific hosting platforms and how to deploy to them + ## Querying data ### The StaticQuery Component