// Web app for the {{projectName}} project — a pure SPA (single-page app). // // Pages here set `renderMode = 'spa'`: the framework skips pre-rendering // and the client renders on load. That is the right call when the page's // state lives entirely in the browser (here: localStorage), so an SSR'd // first paint would just be thrown away on hydration. import { defineEnv, envVar } from '@voltro/env' 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}}, theme: 'system' as const, env, // Bilingual by default. The framework auto-wires a cookie-driven // from these codes and loads the matching // `src/locales/.ts` catalog — so `` / `useT()` / // `useLocale()` work app-wide with no manual setup. The // in the layout writes the `voltro:locale` cookie + reloads. Grow the app to // more languages by adding a code here + a `src/locales/.ts`. locales: ['en', 'de'] as const, defaultLocale: 'en' as const, }