-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: experimental - set headers for static content on vercel
Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>
- Loading branch information
Showing
13 changed files
with
792 additions
and
234 deletions.
There are no files selected for viewing
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
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
29 changes: 29 additions & 0 deletions
29
@kindspells/astro-shield/src/tests/fixtures/vercel_config.json
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,29 @@ | ||
{ | ||
"version": 3, | ||
"routes": [ | ||
{ | ||
"src": "/es", | ||
"headers": { | ||
"Location": "/es/" | ||
}, | ||
"status": 308 | ||
}, | ||
{ | ||
"src": "/new", | ||
"headers": { | ||
"Location": "/new/" | ||
}, | ||
"status": 308 | ||
}, | ||
{ | ||
"src": "^/_astro/(.*)$", | ||
"headers": { | ||
"cache-control": "public, max-age=31536000, immutable" | ||
}, | ||
"continue": true | ||
}, | ||
{ | ||
"handle": "filesystem" | ||
} | ||
] | ||
} |
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
Oops, something went wrong.