Refactor UI component and improve configuration handling
Refactored the components in the site header account section and page.tsx to improve readability. Updated the WordPress client to handle date types correctly. Adjusted the keystatic storage kind to default to 'local' if not specified in the environment variables.
This commit is contained in:
@@ -22,7 +22,7 @@ const github = z.object({
|
||||
});
|
||||
|
||||
const storage = z.union([local, cloud, github]).parse({
|
||||
kind: process.env.KEYSTATIC_STORAGE_KIND,
|
||||
kind: process.env.KEYSTATIC_STORAGE_KIND ?? 'local',
|
||||
project: process.env.KEYSTATIC_STORAGE_PROJECT,
|
||||
repo: process.env.KEYSTATIC_STORAGE_REPO,
|
||||
branchPrefix: process.env.KEYSTATIC_STORAGE_BRANCH_PREFIX,
|
||||
|
||||
Reference in New Issue
Block a user