-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding configuration section to the docs
- Loading branch information
Showing
5 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: Configurations | ||
description: Check out the configuration options for your site | ||
nextTitle: 'Github Action' | ||
nextURL: '/docs/features/github-action' | ||
prevTitle: 'TailwindCSS' | ||
prevURL: '/docs/features/tailwindcss' | ||
--- | ||
|
||
<div class="flex items-start px-5 py-5 mb-12 md:mb-5 mt-1 md:translate-y-0 translate-y-5 leading-[18px] bg-neutral-950 border border-yellow-400 rounded-md"> | ||
<img class="hidden w-auto h-12 my-0 mr-5 md:h-20 md:block" src="/assets/images/icons/configurations.png" /> | ||
<div> | ||
<h1 class="mb-0 text-base md:text-3xl">Configurations</h1> | ||
<p class="my-1">There are a few configurations that you can use to develop your site. More options coming soon.</p> | ||
</div> | ||
</div> | ||
|
||
Inside the root of your directory is where you can create a `static.json` configuration file. When you are running `static dev` this configuration will be loaded with each request. | ||
|
||
## Custom Headers | ||
|
||
If you wish to add custom headers in your requests, you can include the "headers" key inside of your `static.json` file, like so | ||
|
||
```json | ||
{ | ||
"headers" : { | ||
"Cache-Control" : "public, max-age=31536000", | ||
"Access-Control-Allow-Origin" : "*", | ||
"Authorization" : "Bearer 1234567890" | ||
} | ||
} | ||
``` | ||
|
||
Feel free to open a PR and request any additional options that can be passed in via the static.json file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters