diff --git a/Dockerfile b/Dockerfile index 843ab34..1880738 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,8 +64,8 @@ ENV DISABLE_TOOLS=$DISABLE_TOOLS ENV NODE_OPTIONS="--max-old-space-size=3072" -RUN --mount=type=secret,id=VITE_CORS_PROXY_URL \ - --mount=type=secret,id=VITE_CORS_PROXY_SECRET \ +RUN --mount=type=secret,id=VITE_CORS_PROXY_URL,required=false \ + --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_SECRET=$(cat /run/secrets/VITE_CORS_PROXY_SECRET 2>/dev/null || echo "") \ npm run build:with-docs diff --git a/Dockerfile.nonroot b/Dockerfile.nonroot index 4fdf81f..80fe8c1 100644 --- a/Dockerfile.nonroot +++ b/Dockerfile.nonroot @@ -57,8 +57,8 @@ ENV VITE_FOOTER_TEXT=$VITE_FOOTER_TEXT ENV NODE_OPTIONS="--max-old-space-size=3072" -RUN --mount=type=secret,id=VITE_CORS_PROXY_URL \ - --mount=type=secret,id=VITE_CORS_PROXY_SECRET \ +RUN --mount=type=secret,id=VITE_CORS_PROXY_URL,required=false \ + --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_SECRET=$(cat /run/secrets/VITE_CORS_PROXY_SECRET 2>/dev/null || echo "") \ npm run build:with-docs diff --git a/vite.config.ts b/vite.config.ts index ef1b8c3..d6a5fcd 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,8 +1,8 @@ -import { defineConfig, Plugin } from 'vitest/config'; +import { defineConfig } from 'vitest/config'; import type { IncomingMessage, ServerResponse } from 'http'; import http from 'http'; import https from 'https'; -import type { Connect } from 'vite'; +import type { Connect, Plugin } from 'vite'; // import basicSsl from '@vitejs/plugin-basic-ssl'; import tailwindcss from '@tailwindcss/vite'; import { nodePolyfills } from 'vite-plugin-node-polyfills';