Skip to content

Commit

Permalink
Check if production mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sergesoroka committed Oct 7, 2024
1 parent df6ead8 commit f04e3ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const Main = () => {
? "https://spectra-dev.adma.ai/search/"
: "http://localhost:5173/search/";

console.log("ENV", import.meta.env.PROD);

if ("serviceWorker" in navigator) {
window.addEventListener("load", () => {
navigator.serviceWorker
Expand Down

0 comments on commit f04e3ba

Please sign in to comment.