This repository was archived by the owner on Feb 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 4
4
"version" : " 0.0.0" ,
5
5
"type" : " module" ,
6
6
"scripts" : {
7
- "dev" : " vite" ,
8
- "build" : " tsc -b && vite build" ,
7
+ "dev" : " vite --mode development" ,
8
+ "prod" : " vite --mode production" ,
9
+ "build" : " tsc -b && vite build --mode production" ,
9
10
"lint" : " eslint ." ,
10
- "preview" : " vite preview" ,
11
+ "preview" : " vite preview --mode production " ,
11
12
"deploy" : " npm run build && gh-pages -d dist"
12
13
},
13
14
"homepage" : " https://foundersandcoders.github.io/LIFT-frontend" ,
Original file line number Diff line number Diff line change @@ -4,12 +4,19 @@ import Modal from '../../components/ui/Modal';
4
4
import statements from '../../data/statements.json' ;
5
5
// import { FaLock, FaLockOpen } from 'react-icons/fa';
6
6
import StatementsTable from '../../components/ui/StatementsTable' ;
7
- //import ActionsTable from '../../components/ui/ActionsTable';
8
7
import ActionsManager from '../../components/ui/ActionsManager' ;
9
8
10
9
// Utility function to generate dropdown options. Include 'All' by default.
11
10
const getUniqueOptions = ( data : string [ ] ) => Array . from ( new Set ( data ) ) ;
12
11
12
+ //Testing Fetch
13
+ const API_URL = import . meta. env . VITE_API_URL ;
14
+ console . log ( 'Backend API:' , API_URL ) ;
15
+
16
+ fetch ( `${ API_URL } /n/s/Alex` )
17
+ . then ( ( response ) => response . json ( ) )
18
+ . then ( ( data ) => console . log ( data ) ) ;
19
+
13
20
const EmployersDashboard : React . FC = ( ) => {
14
21
const [ filters , setFilters ] = useState ( {
15
22
subject : 'All' ,
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import react from '@vitejs/plugin-react';
4
4
// https://vite.dev/config/
5
5
export default defineConfig ( {
6
6
base : './' ,
7
- // base: '/LIFT-frontend/',
8
7
plugins : [ react ( ) ] ,
8
+ server : {
9
+ port : 5000 ,
10
+ } ,
9
11
} ) ;
You can’t perform that action at this time.
0 commit comments