// `port` is allocated by `voltro create-project` / `voltro add-app` from // the project's portRange (in project.json). import { defineEnv, envVar } from '@voltro/env' // Typed PUBLIC environment — public vars are validated + baked into the browser // bundle at build time and read via `publicEnv` from '@voltro/env/public' // (typed, autocompleted). NEVER put a secret here (it would ship to every // visitor) — declare secrets on the api instead. Run `voltro env` for the manifest. export const env = defineEnv({ VOLTRO_PUBLIC_APP_NAME: envVar.string({ access: 'public', default: '{{capProjectName}}' }), }) export default { type: 'web' as const, name: '{{capProjectName}}{{capAppName}}', port: {{port}}, // The shipped catalogs (Strategy B: URL-prefix i18n). `defaultLocale` // lives at the bare path (`/`); every other locale is prefixed (`/de`). // `voltro build` pre-renders one HTML file per locale. Keep this in sync // with SUPPORTED_LOCALES / DEFAULT_LOCALE in src/lib/locale.ts — that file // drives the [locale] mirror routing + the language switcher. locales: ['en', 'de'] as const, defaultLocale: 'en' as const, env, }