refactor: improve logging levels and environment configuration

- Fix logging levels: change verbose debugging from info to debug level
  - TestView: component mounting, boot-time config, URL flow testing
  - main.capacitor.ts: deeplink processing steps and router state
  - HomeView: API call details, component state updates, template rendering

- Remove redundant environment variable override in vite.config.common.mts
  - Environment loading via dotenv works correctly
  - Manual override was defensive programming but unnecessary
  - Simplifies configuration and reduces maintenance burden

- Add comprehensive Playwright timeout behavior documentation
  - README.md: detailed timeout types, failure behavior, debugging guide
  - TESTING.md: timeout failure troubleshooting and common scenarios
  - Clarifies that timeout failures indicate real issues, not flaky tests

- Fix TypeScript configuration for .mts imports
  - tsconfig.node.json: add allowImportingTsExtensions for Vite config files
  - Resolves import path linting errors for .mts extensions

All changes maintain existing functionality while improving code quality
and reducing log noise in production environments.
This commit is contained in:
Matthew Raymer
2025-09-05 04:02:53 +00:00
parent 10a1f435ed
commit b57be7670c
7 changed files with 131 additions and 20 deletions

View File

@@ -20,11 +20,7 @@ export async function createBuildConfig(platform: string): Promise<UserConfig> {
// Set platform - PWA is always enabled for web platforms
process.env.VITE_PLATFORM = platform;
// Set development API servers for local development
if (process.env.NODE_ENV === 'development') {
process.env.VITE_DEFAULT_ENDORSER_API_SERVER = 'http://localhost:3000';
process.env.VITE_DEFAULT_PARTNER_API_SERVER = 'http://localhost:3000';
}
// Environment variables are loaded from .env files via dotenv.config() above
return {
base: "/",