// `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. `VOLTRO_PUBLIC_SITE_NAME` titles the changelog // (header brand + RSS feed). Public vars are validated at boot and baked // into the browser bundle — NEVER put a secret here. Run `voltro env` for // the manifest. The RSS generator (scripts/generate-rss.mjs) reads the same // value from process.env at build time. export const env = defineEnv({ VOLTRO_PUBLIC_SITE_NAME: envVar.string({ access: 'public', default: '{{capProjectName}}' }), }) export default { type: 'web' as const, name: '{{capProjectName}}{{capAppName}}', port: {{port}}, // A BILINGUAL (en/de) changelog — Strategy B (URL-prefix i18n). English // lives at the bare path (`/`, `/`); German is prefixed (`/de`, // `/de/`). `locales` tells `voltro build` to pre-render a per-locale // HTML variant for every `[locale]/…` mirror page. Keep in sync with // SUPPORTED_LOCALES / DEFAULT_LOCALE in src/lib/locale.ts; every code MUST // have a matching `src/locales/.ts`. locales: ['en', 'de'] as const, defaultLocale: 'en' as const, env, }