• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

teableio / teable / 17374314283

01 Sep 2025 10:02AM UTC coverage: 79.978% (-0.01%) from 79.991%
17374314283

Pull #1819

github

web-flow
Merge 81570226f into 2d107126b
Pull Request #1819: test/upload assets

8501 of 9030 branches covered (94.14%)

9 of 17 new or added lines in 2 files covered. (52.94%)

2 existing lines in 1 file now uncovered.

40257 of 50335 relevant lines covered (79.98%)

1684.35 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

38.46
/apps/nestjs-backend/src/features/next/plugin/plugin-static-proxy.middleware.ts
1
// plugin-static-proxy.middleware.ts
2✔
2
import path from 'path';
3
import type { NestMiddleware } from '@nestjs/common';
4
import type { Request, Response } from 'express';
5

6
export class PluginStaticProxyMiddleware implements NestMiddleware {
2✔
7
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2✔
8
  async use(req: Request, res: Response, next: () => void): Promise<any> {
2✔
NEW
9
    const assetPrefix = process.env.NEXT_BUILD_ENV_ASSET_PREFIX;
×
NEW
10
    console.log('PluginStaticProxyMiddleware assetPrefix', assetPrefix);
×
NEW
11
    if (assetPrefix && req.path.startsWith('/plugin/_next/static/')) {
×
NEW
12
      const assetUrl = path.join(assetPrefix, req.path);
×
NEW
13
      return res.redirect(302, assetUrl);
×
NEW
14
    }
×
15

NEW
16
    next();
×
NEW
17
  }
×
18
}
2✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc