mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-19 07:35:26 -04:00
* Initial port to appimage-builder * Almost * Fix appimage build on arm64 * Custom patch for external binaries run under appimage - Disable bubblewrap sandbox when running under appimage - Change cwd to APPDIR when running under appimage * AppImage Works (for the first lunch, then it crashes with Stack Smash 😭) * Fix stack smashing, now AppImage almos fully works \o/ (gstreamer is still broken) - Temporarily disable the volume watcher when running under appimage (Workaround for the stack smash error) - Wrap gnu lic version check for appimage under conditional compile for glibc targets - Add error handling for the justUpdatedCheck - Fix VITE_LANDING_ORIGIN being undefined * On non glibc systems default to runtime/compat * Use glibc version 2.8 instead of 0 for non-gnu systems * Fix video playback not working due to broken GstRegistry * Build and publish new AppImage release artifact - Fix model location when building deb - Improve model path resolution logic - Remove patchelf dependency from setup script - Fix incorrectly ignore gstreamer dependency in AppImage recipe * Fix clippy complaining about `get_path_relative_to_exe` - Read GLIBC_FAKE_VERSION or use 2.8 for musl in appimage (while the code is there, this is not really supported for now) * Remove appimage tauri target from release CI * Remove setup-buildx-action, not relly needed * typo fix * Fix git describe command running on cwd instead of the repo root dir * Attempt fix weird git permissions errors in CI+docker * Pass CI env to docker appimage * Only use git after installing it * Pass target to appimage build script * Fix permission after creating appimage * -_- * Swap envvar with github ci var * Format * Add instruction on how to manually build an AppImage * Fix typos * docs: add note about running podman with `--privileged` if there's a permission denied error * docs: fix typo and link directly to appimage-building `README.md` * refactor: streamline code and make it a bit cleaner --------- Co-authored-by: jake <77554505+brxken128@users.noreply.github.com>
47 lines
1.7 KiB
TypeScript
47 lines
1.7 KiB
TypeScript
import { createEnv } from '@t3-oss/env-nextjs';
|
|
import { z } from 'zod';
|
|
|
|
export const env = createEnv({
|
|
server: {
|
|
NODE_ENV: z.enum(['development', 'production', 'test']),
|
|
DATABASE_URL: z.string().url(),
|
|
SLACK_FEEDBACK_URL: z.string().url(),
|
|
AUTH_SECRET: z.string(),
|
|
GITHUB_PAT: z.string(),
|
|
GITHUB_CLIENT_ID: z.string(),
|
|
GITHUB_SECRET: z.string(),
|
|
AWS_SES_ACCESS_KEY: z.string(),
|
|
AWS_SES_SECRET_KEY: z.string(),
|
|
AWS_SES_REGION: z.string(),
|
|
MAILER_FROM: z.string(),
|
|
GITHUB_ORG: z.string(),
|
|
GITHUB_REPO: z.string(),
|
|
SLACK_SIGNING_SECRET: z.string(),
|
|
SLACK_RELEASES_CHANNEL: z.string(),
|
|
SLACK_BOT_TOKEN: z.string()
|
|
},
|
|
client: {},
|
|
runtimeEnv: {
|
|
NODE_ENV: process.env.NODE_ENV,
|
|
DATABASE_URL: process.env.DATABASE_URL,
|
|
SLACK_FEEDBACK_URL: process.env.SLACK_FEEDBACK_URL,
|
|
AUTH_SECRET: process.env.AUTH_SECRET,
|
|
GITHUB_PAT: process.env.GITHUB_PAT || process.env.GITHUB_TOKEN,
|
|
GITHUB_CLIENT_ID: process.env.GITHUB_CLIENT_ID,
|
|
GITHUB_SECRET: process.env.GITHUB_SECRET,
|
|
AWS_SES_ACCESS_KEY: process.env.AWS_SES_ACCESS_KEY,
|
|
AWS_SES_SECRET_KEY: process.env.AWS_SES_SECRET_KEY,
|
|
AWS_SES_REGION: process.env.AWS_SES_REGION,
|
|
MAILER_FROM: process.env.MAILER_FROM || 'Spacedrive <no-reply@spacedrive.com>',
|
|
GITHUB_ORG: process.env.GITHUB_ORG || 'spacedriveapp',
|
|
GITHUB_REPO: process.env.GITHUB_REPO || 'spacedrive',
|
|
SLACK_SIGNING_SECRET: process.env.SLACK_SIGNING_SECRET,
|
|
SLACK_RELEASES_CHANNEL: process.env.SLACK_RELEASES_CHANNEL,
|
|
SLACK_BOT_TOKEN: process.env.SLACK_BOT_TOKEN
|
|
},
|
|
// In dev or in eslint disable checking.
|
|
// Kinda sucks for in dev but you don't need the whole setup to change the docs.
|
|
skipValidation: process.env.VERCEL !== '1',
|
|
emptyStringAsUndefined: true
|
|
});
|