AWS SES preview
This commit is contained in:
@@ -6,10 +6,10 @@ import { auth } from './auth/auth';
|
||||
import { authRateLimiter, apiRateLimiter } from './auth/rateLimiter';
|
||||
import chemicalsRouter from './routes/chemicals';
|
||||
import protocolsRouter from './routes/protocols';
|
||||
import profileRouter from './routes/profile';
|
||||
import path from 'path';
|
||||
|
||||
const app = express();
|
||||
console.log(process.env.BETTER_AUTH_URL, process.env.BETTER_AUTH_SECRET);
|
||||
const PORT = process.env.PORT || 3001;
|
||||
const UPLOADS_DIR = process.env.UPLOADS_DIR || path.join(__dirname, '../uploads');
|
||||
|
||||
@@ -38,11 +38,10 @@ app.use(express.json({ limit: '1mb' }));
|
||||
app.use('/api', apiRateLimiter);
|
||||
app.use('/api/chemicals', chemicalsRouter);
|
||||
app.use('/api/protocols', protocolsRouter);
|
||||
app.use('/api/profile', profileRouter);
|
||||
|
||||
app.get('/api/health', (_req, res) => res.json({ ok: true }));
|
||||
|
||||
app.listen(PORT, () => {
|
||||
console.log(`LabWise API running on http://localhost:${PORT}`);
|
||||
console.log('BETTER_AUTH_URL:', process.env.BETTER_AUTH_URL);
|
||||
console.log('BETTER_AUTH_SECRET:', process.env.BETTER_AUTH_SECRET);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user