Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions apps/app/src/shared/env.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { createEnv, getRuntimeEnv } from "@init/env"
import { createEnv, getRuntimeEnv, REACT_PUBLIC_ENV_PREFIX } from "@init/env"
import { auth, db } from "@init/env/presets"
import { REACT_PUBLIC_ENV_PREFIX } from "@init/utils/constants"
import * as z from "@init/utils/schema"
import { isCI } from "std-env"

Expand Down
2 changes: 2 additions & 0 deletions packages/env/src/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const EXPO_PUBLIC_ENV_PREFIX = "EXPO_PUBLIC_"
export const REACT_PUBLIC_ENV_PREFIX = "PUBLIC_"
1 change: 1 addition & 0 deletions packages/env/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { createEnv } from "@t3-oss/env-core"
export { getRuntimeEnv } from "#runtime.ts"
export * from "#constants.ts"
2 changes: 1 addition & 1 deletion packages/env/src/presets.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { EXPO_PUBLIC_ENV_PREFIX, REACT_PUBLIC_ENV_PREFIX } from "@init/utils/constants"
import * as z from "@init/utils/schema"
import { createEnv } from "@t3-oss/env-core"
import { isCI } from "std-env"
import { EXPO_PUBLIC_ENV_PREFIX, REACT_PUBLIC_ENV_PREFIX } from "#constants.ts"
import { getRuntimeEnv } from "#runtime.ts"

// Presets for system environment variables from popular services (Vercel, Neon,
Expand Down
3 changes: 0 additions & 3 deletions packages/utils/src/constants/app.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
export const APP_NAME = "Init"
export const APP_ID = "init"

export const REACT_PUBLIC_ENV_PREFIX = "PUBLIC_"
export const EXPO_PUBLIC_ENV_PREFIX = "EXPO_PUBLIC_"

export const THEMES = ["light", "dark", "system"] as const
export type Theme = (typeof THEMES)[number]
export const THEME_STORAGE_KEY = "init-theme"
Expand Down