// Web app for the {{projectName}} project — a STATIC page with a serverless // contact form. The page itself is pre-rendered (`renderMode = 'static'`); the // form is an island that POSTs to a SEPARATE serverless function // (functions/sendMessage.serverless.ts), which you deploy with // `voltro serverless`. The page can ship to a CDN; the function scales to zero. 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, // Bilingual, Strategy B (URL-prefix): English at the bare path, German // under /de. `voltro build` pre-renders a per-locale variant for every // `[locale]/…` mirror page. Keep in sync with SUPPORTED_LOCALES / // DEFAULT_LOCALE in src/lib/locale.ts. Every code listed MUST have a // matching src/locales/.ts or boot fails. locales: ['en', 'de'] as const, defaultLocale: 'en' as const, env, }