diff --git a/server/routes.ts b/server/routes.ts index e004aa2..cba49c5 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -737,8 +737,8 @@ export async function registerRoutes(app: Express): Promise { try { console.log('📸 Serving custom social image...'); - const path = require('path'); - const fs = require('fs'); + const path = await import('path'); + const fs = await import('fs'); const imagePath = path.join(__dirname, '..', 'client', 'public', 'social-share-image.png');