Dependencies Updates (#83)

* Keystatic: Use the correct variable when fetching content from GitHub
* Revert default layout style
This commit is contained in:
Giancarlo Buomprisco
2024-11-22 08:55:15 +01:00
committed by GitHub
parent 977c958975
commit 5cc936b982
28 changed files with 1754 additions and 1600 deletions

View File

@@ -40,6 +40,15 @@ export async function createKeystaticReader() {
}
function getKeystaticGithubConfiguration() {
/**
* @description The repository to use for the GitHub storage.
* This can be provided through the `NEXT_PUBLIC_KEYSTATIC_STORAGE_REPO` environment variable. The previous environment variable `KEYSTATIC_STORAGE_REPO` is deprecated.
*/
const repo =
process.env.NEXT_PUBLIC_KEYSTATIC_STORAGE_REPO ??
/* @deprecated */
process.env.KEYSTATIC_STORAGE_REPO;
return z
.object({
token: z.string({
@@ -51,7 +60,7 @@ function getKeystaticGithubConfiguration() {
})
.parse({
token: process.env.KEYSTATIC_GITHUB_TOKEN,
repo: process.env.KEYSTATIC_STORAGE_REPO,
repo,
pathPrefix: process.env.KEYSTATIC_PATH_PREFIX,
});
}