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
@@ -16,7 +16,7 @@
|
||||
"./route-handler": "./src/keystatic-route-handler.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@keystatic/core": "0.5.39",
|
||||
"@keystatic/core": "0.5.41",
|
||||
"@keystatic/next": "^5.0.1",
|
||||
"@markdoc/markdoc": "^0.4.0"
|
||||
},
|
||||
@@ -26,7 +26,7 @@
|
||||
"@kit/prettier-config": "workspace:*",
|
||||
"@kit/tsconfig": "workspace:*",
|
||||
"@kit/ui": "workspace:*",
|
||||
"@types/node": "^22.8.7",
|
||||
"@types/node": "^22.9.1",
|
||||
"@types/react": "npm:types-react@19.0.0-rc.1",
|
||||
"react": "19.0.0-rc-45804af1-20241021",
|
||||
"zod": "^3.23.8"
|
||||
|
||||
@@ -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