File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 # Build and test the project, then
2929 # deploy to Azure Web App.
3030 npm install
31- npm run build --if-present
31+ npx vite build --if-present
3232 npm run test --if-present
3333 working-directory : ./client # Ensure this path is correct
3434 - name : ' Deploy to Azure WebApp'
Original file line number Diff line number Diff line change 1- import React , { useEffect , useState } from "react" ;
1+ import React , { useState } from "react" ;
22import "./App.css" ;
33import Header from "./components/Header" ;
44import MainContent from "./components/MainContent" ;
@@ -10,7 +10,7 @@ const App = () => {
1010 setPage ( pageClicked ) ;
1111 console . log ( `Clicked on ${ pageClicked } ` ) ;
1212 }
13-
13+ console . log ( "App component rendered" ) ;
1414 return (
1515 < div >
1616 < Header handleClick = { handleClick } />
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ const Pcs = () => {
1414 async function fetchPCSContracts ( ) {
1515 let baseUrl = "https://rigsnvapi.azurewebsites.net" ;
1616 let url = new URL ( "/pcs_contracts" , baseUrl ) ;
17+ console . log ( "Pcs fetching data" ) ;
1718 try {
1819 const response = await fetch ( url , {
1920 method : 'GET' ,
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ const Weather = () => {
1212 async function fetchWeatherData ( ) {
1313 let baseUrl = "https://rigsnvapi.azurewebsites.net" ;
1414 let url = new URL ( "/weather" , baseUrl ) ;
15+ console . log ( "Weather fetching data" ) ;
1516 try {
1617 const coordinates = await getLocation ( ) ;
1718 try {
You can’t perform that action at this time.
0 commit comments