10 Commits

Author SHA1 Message Date
Valentyne Stigloher
4f7ccab2c6 (nuxt) use --env-file to read .env before nitro reads process.env, make dotenv.ts an import with side effects that only sets additional variables
care must be taken because everything initialized later will not be picked up by Nitro useRuntimeConfig() without passing an event
2025-03-14 22:18:09 +01:00
Valentyne Stigloher
68efcb7263 (nuxt) replace NUXT_PUBLIC_ALL_LOCALES_URLS with calculating it from locale and NUXT_PUBLIC_DOMAIN_BASE 2025-03-14 19:26:16 +01:00
Valentyne Stigloher
56aa0b27a2 (server) remove global.config and global.translations and replace them by dynamic loading 2025-03-14 19:25:57 +01:00
Valentyne Stigloher
765d9a0c51 (dependencies) upgrade eslint to 9.22.0 and reconfigure @stylistic/generator-star-spacing to match prettier output 2025-03-14 18:47:32 +01:00
Valentyne Stigloher
2d80b315dd (nuxt) read public key at startup, not during build time 2025-02-15 14:27:01 +01:00
Valentyne Stigloher
314c3553ad (nuxt) rename env variables that fill nuxt runtime configuration to NUXT_* so that they can be passed at runtime 2025-02-15 14:27:01 +01:00
Adaline Simonian
23a3862ca0
test: introduce snapshot-based smoke tests
- Adds a new test suite with Docker-based smoke tests for all locales.
  Can be run using the ./smoketest.sh script.
- Replaces all calls to Math.random() with a new helper that returns 0.5
  in snapshot testing mode, ensuring deterministic snapshots.
- Similarly replaces all calls to new Date() and Date.now() with new
  helpers that return a fixed date in snapshot testing mode.
- Replaces checks against NODE_ENV with APP_ENV, to ensure that the
  bundles can be built with Nuxt for testing without losing code that
  would otherwise be stripped out by production optimizations.
- Adds a database init script that can be used to initialize the
  database with a single admin user and a long-lived JWT token for use
  in automation tests.
- Adds a JWT decoding/encoding CLI tool for debugging JWTs.

Note: Snapshots are not checked in, and must be generated manually. See
test/__snapshots__/.gitignore for more information.
2025-02-02 23:11:19 -08:00
Valentyne Stigloher
b25afefc49 (fmt) 2024-10-29 10:56:32 +01:00
Valentyne Stigloher
051784b5da (nuxt) use dotenv closure to ensure that env variables on the server are set during production runtime 2024-09-12 10:11:25 +02:00
Valentyne Stigloher
55050c658f (nuxt) move routes to pages for usage of definePageMeta 2024-09-12 10:11:25 +02:00