diff --git a/client/tsconfig.app.json b/client/tsconfig.app.json index ce05e24..ca1ee28 100644 --- a/client/tsconfig.app.json +++ b/client/tsconfig.app.json @@ -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/**/*", diff --git a/src/app.ts b/src/app.ts index 21665df..d715d87 100644 --- a/src/app.ts +++ b/src/app.ts @@ -6,7 +6,7 @@ import connectDB from './config/db'; import path from 'path'; dotenv.config(); -connectDB(); +// connectDB(); const app = express(); @@ -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;