Dependencies Updates (#83)
* Keystatic: Use the correct variable when fetching content from GitHub * Revert default layout style
This commit is contained in:
committed by
GitHub
parent
977c958975
commit
5cc936b982
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user