Skip to content

Commit

Permalink
update app page env
Browse files Browse the repository at this point in the history
  • Loading branch information
Sivamani-18 committed Jul 24, 2024
1 parent bb6d550 commit 1e68fe9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import React from 'react';

Check failure on line 1 in src/App.tsx

View workflow job for this annotation

GitHub Actions / build

'React' is declared but its value is never read.
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';

import './App.css';
import Home from './pages/Home';
import About from './pages/About';
import Header from './components/Header/Header';

function App() {
const basename =
process.env.NODE_ENV === 'production' ? process.env.VITE_APP_BASENAME : '/';
import.meta.env.MODE === 'production'
? import.meta.env.VITE_APP_BASENAME
: '/';

console.log('basename', basename);
console.log('basename', basename, import.meta.env.VITE_APP_BASENAME);

return (
<Router basename={basename}>
Expand Down

0 comments on commit 1e68fe9

Please sign in to comment.