Skip to content

Commit

Permalink
Create .env files from action
Browse files Browse the repository at this point in the history
  • Loading branch information
basshamut committed Jun 27, 2024
1 parent a98af26 commit afb3b40
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function InnerApp() {
<Routes>
<Route path="/virtual-dojo/frontend/login" element={<Login/>}/>
<Route path="/virtual-dojo/frontend/register" element={<Register/>}/>
<Route path="/virtual-dojo/frontend/dashboard*" element={<Dashboard/>}/>
<Route path="/virtual-dojo/frontend/dashboard" element={<Dashboard/>}/>
<Route path="/virtual-dojo/frontend" element={<Login/>}/>
</Routes>
</>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/hooks/useFetchMeets.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ function useFetchMeets(isUser, hasSession) {
const [meets, setMeets] = useState([]);
const [error, setError] = useState(null);
const domain = import.meta.env.VITE_API_URL
console.log(domain)
const base64Credentials = getBase64CredentialsFromSession()

useEffect(() => {
Expand Down
3 changes: 3 additions & 0 deletions frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ export default defineConfig({
proxy: {
'/api': 'http://localhost:5000',
},
},
define: {
'process.env': process.env
}
})

0 comments on commit afb3b40

Please sign in to comment.