LCOV - code coverage report
Current view: top level - src/main.jsx - main.jsx (source / functions) Hit Total Coverage
Test: changed-lcov.info Lines: 0 17 0.0 %
Date: 2025-11-22 00:01:26 Functions: 1 1 100.0 %

          Line data    Source code
       1             : // File: src/main.jsx
       2             : //import { StrictMode } from 'react';
       3           0 : import { createRoot } from 'react-dom/client';
       4           0 : import './index.css';
       5           0 : import App from './App.jsx';
       6           0 : import { Amplify } from 'aws-amplify';            // use 'aws-amplify'
       7           0 : import awsconfig from './aws-exports.js';         // ensure .js exists
       8             : 
       9             : // Local dev override: tweak the imported config object
      10           0 : if (import.meta.env.DEV) {
      11           0 :   console.log('Local dev: overriding Amplify redirect URLs');
      12           0 :   if (awsconfig.oauth) {
      13           0 :     awsconfig.oauth.redirectSignIn = 'http://localhost:3001/login/';
      14           0 :     awsconfig.oauth.redirectSignOut = 'http://localhost:3001/login/';
      15           0 :   }
      16           0 : }
      17             : 
      18           0 : console.log('AWS Config:', awsconfig);
      19           0 : Amplify.configure(awsconfig);
      20             : 
      21           0 : createRoot(document.getElementById('root')).render(
      22             :   //<StrictMode>
      23           0 :     <App />
      24             :   //</StrictMode>
      25           0 : );

Generated by: LCOV version 1.15.alpha0w