Skip to content

Commit

Permalink
recent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ogeobubu committed Oct 23, 2024
1 parent 9152d88 commit 205425d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions client/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"useDefineForClassFields": false,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": false,
"skipLibCheck": true,
"moduleResolution": "bundler",
"allowImportingTsExtensions": false,
"isolatedModules": false,
"allowImportingTsExtensions": true,
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": false,
"noEmit": true,
"jsx": "react-jsx",
"strict": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noFallthroughCasesInSwitch": false
"noFallthroughCasesInSwitch": true
},
"include": [
"src/**/*",
Expand Down
6 changes: 3 additions & 3 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import connectDB from './config/db';
import path from 'path';

dotenv.config();
connectDB();
// connectDB();

const app = express();

Expand All @@ -17,10 +17,10 @@ app.use(express.json());
app.use('/api/images', imageRoutes);
app.use('/uploads', express.static('uploads'));

app.use(express.static(path.join(__dirname, '../../client', 'dist')));
app.use(express.static(path.join(__dirname, 'client', 'dist')));

app.get('*', (req, res) => {
res.sendFile(path.join(__dirname, '../../client', 'dist', 'index.html'));
res.sendFile(path.join(__dirname, 'client', 'dist', 'index.html'));
});

export default app;

0 comments on commit 205425d

Please sign in to comment.