Skip to content

Commit 8e8f1bc

Browse files
committed
changed npm build for npx vite build to build the website with github actions ylm
1 parent 424e31d commit 8e8f1bc

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/main_rigsnv.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
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'

client/src/App.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {useEffect, useState} from "react";
1+
import React, {useState} from "react";
22
import "./App.css";
33
import Header from "./components/Header";
44
import 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} />

client/src/components/Pcs.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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',

client/src/components/Weather.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)