mirror of
https://github.com/Afilmory/afilmory
synced 2026-02-01 22:48:17 +00:00
- Added functionality to push updated manifests to a remote Git repository after building. - Introduced a Git token configuration in the builder settings to authenticate pushes. - Enhanced the CLI to handle remote repository synchronization, including cloning and pulling updates. - Updated the builder to return detailed results on whether updates occurred during the build process. - Revised documentation to reflect new configuration options and usage instructions. Signed-off-by: Innei <tukon479@gmail.com>
28 lines
852 B
TypeScript
28 lines
852 B
TypeScript
import 'dotenv-expand/config'
|
|
|
|
import { createEnv } from '@t3-oss/env-core'
|
|
import { z } from 'zod'
|
|
|
|
export const env = createEnv({
|
|
server: {
|
|
S3_REGION: z.string().default('us-east-1'),
|
|
S3_ACCESS_KEY_ID: z.string().min(1).optional(),
|
|
S3_SECRET_ACCESS_KEY: z.string().min(1).optional(),
|
|
S3_ENDPOINT: z
|
|
.string()
|
|
.default('https://s3.us-east-1.amazonaws.com')
|
|
.optional(),
|
|
S3_BUCKET_NAME: z.string().min(1).optional(),
|
|
S3_PREFIX: z.string().default('').optional(),
|
|
S3_CUSTOM_DOMAIN: z.string().default('').optional(),
|
|
S3_EXCLUDE_REGEX: z.string().optional(),
|
|
|
|
PG_CONNECTION_STRING: z.string().min(1).optional(),
|
|
|
|
// Git token for uploading updated manifest to remote repository
|
|
GIT_TOKEN: z.string().optional(),
|
|
},
|
|
runtimeEnv: process.env,
|
|
isServer: typeof window === 'undefined',
|
|
})
|