fix(build): restore tsc compat after vitest bundler type drift

This commit is contained in:
alam00000
2026-04-18 13:52:51 +05:30
parent af763d73c1
commit df3567a61f
3 changed files with 6 additions and 6 deletions

View File

@@ -64,8 +64,8 @@ ENV DISABLE_TOOLS=$DISABLE_TOOLS
ENV NODE_OPTIONS="--max-old-space-size=3072" ENV NODE_OPTIONS="--max-old-space-size=3072"
RUN --mount=type=secret,id=VITE_CORS_PROXY_URL \ RUN --mount=type=secret,id=VITE_CORS_PROXY_URL,required=false \
--mount=type=secret,id=VITE_CORS_PROXY_SECRET \ --mount=type=secret,id=VITE_CORS_PROXY_SECRET,required=false \
VITE_CORS_PROXY_URL=$(cat /run/secrets/VITE_CORS_PROXY_URL 2>/dev/null || echo "") \ VITE_CORS_PROXY_URL=$(cat /run/secrets/VITE_CORS_PROXY_URL 2>/dev/null || echo "") \
VITE_CORS_PROXY_SECRET=$(cat /run/secrets/VITE_CORS_PROXY_SECRET 2>/dev/null || echo "") \ VITE_CORS_PROXY_SECRET=$(cat /run/secrets/VITE_CORS_PROXY_SECRET 2>/dev/null || echo "") \
npm run build:with-docs npm run build:with-docs

View File

@@ -57,8 +57,8 @@ ENV VITE_FOOTER_TEXT=$VITE_FOOTER_TEXT
ENV NODE_OPTIONS="--max-old-space-size=3072" ENV NODE_OPTIONS="--max-old-space-size=3072"
RUN --mount=type=secret,id=VITE_CORS_PROXY_URL \ RUN --mount=type=secret,id=VITE_CORS_PROXY_URL,required=false \
--mount=type=secret,id=VITE_CORS_PROXY_SECRET \ --mount=type=secret,id=VITE_CORS_PROXY_SECRET,required=false \
VITE_CORS_PROXY_URL=$(cat /run/secrets/VITE_CORS_PROXY_URL 2>/dev/null || echo "") \ VITE_CORS_PROXY_URL=$(cat /run/secrets/VITE_CORS_PROXY_URL 2>/dev/null || echo "") \
VITE_CORS_PROXY_SECRET=$(cat /run/secrets/VITE_CORS_PROXY_SECRET 2>/dev/null || echo "") \ VITE_CORS_PROXY_SECRET=$(cat /run/secrets/VITE_CORS_PROXY_SECRET 2>/dev/null || echo "") \
npm run build:with-docs npm run build:with-docs

View File

@@ -1,8 +1,8 @@
import { defineConfig, Plugin } from 'vitest/config'; import { defineConfig } from 'vitest/config';
import type { IncomingMessage, ServerResponse } from 'http'; import type { IncomingMessage, ServerResponse } from 'http';
import http from 'http'; import http from 'http';
import https from 'https'; import https from 'https';
import type { Connect } from 'vite'; import type { Connect, Plugin } from 'vite';
// import basicSsl from '@vitejs/plugin-basic-ssl'; // import basicSsl from '@vitejs/plugin-basic-ssl';
import tailwindcss from '@tailwindcss/vite'; import tailwindcss from '@tailwindcss/vite';
import { nodePolyfills } from 'vite-plugin-node-polyfills'; import { nodePolyfills } from 'vite-plugin-node-polyfills';