summaryrefslogtreecommitdiff
path: root/docs/dev.md
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-06-29 13:12:27 -0700
committerGravatar Fred K. Schott <fkschott@gmail.com> 2021-06-29 13:12:27 -0700
commit9c7921300c5aae35ee947be5fc515e5b3fdaf1a2 (patch)
tree94dc4d802341e827466f641de97acf74905c706c /docs/dev.md
parent4df98a79f8d5f14e9e049322a6eef2db4f985ae4 (diff)
parent279a25246260ef95459d29c8029b18bd89adc206 (diff)
downloadastro-9c7921300c5aae35ee947be5fc515e5b3fdaf1a2.tar.gz
astro-9c7921300c5aae35ee947be5fc515e5b3fdaf1a2.tar.zst
astro-9c7921300c5aae35ee947be5fc515e5b3fdaf1a2.zip
Merge branch 'docs-sync-1'
Diffstat (limited to 'docs/dev.md')
-rw-r--r--docs/dev.md51
1 files changed, 0 insertions, 51 deletions
diff --git a/docs/dev.md b/docs/dev.md
deleted file mode 100644
index 562ccf001..000000000
--- a/docs/dev.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# Development Server
-
-The development server comes as part of the Astro CLI. Start the server with:
-
-```shell
-astro dev
-```
-
-In your project root. You can specify an alternative
-
-## Special routes
-
-The dev server will serve the following special routes:
-
-### /400
-
-This is a custom **400** status code page. You can add this route by adding a page component to your `src/pages` folder:
-
-```
-├── src/
-│ ├── components/
-│ └── pages/
-│ └── 400.astro
-```
-
-For any URL you visit that doesn't have a corresponding page, the `400.astro` file will be used.
-
-### /500
-
-This is a custom **500** status code page. You can add this route by adding a page component to your `src/pages` folder:
-
-```
-├── src/
-│ ├── components/
-│ └── pages/
-│ └── 500.astro
-```
-
-This page is used any time an error occurs in the dev server.
-
-The 500 page will receive an `error` query parameter which you can access with:
-
-```
----
-const error = Astro.request.url.searchParams.get('error');
----
-
-<strong>{error}</strong>
-```
-
-A default error page is included with Astro so you will get pretty error messages even without adding a custom 500 page.