feat: Update Dockerfile for Node 20 and add vite-env.d.ts for environment variables

This commit is contained in:
2026-03-09 22:03:55 +01:00
parent fe441c4bea
commit babef04f9a
2 changed files with 30 additions and 3 deletions
+24
View File
@@ -0,0 +1,24 @@
/// <reference types="vite/client" />
declare module '*.css';
declare module '*.scss';
declare module '*.png';
declare module '*.jpg';
declare module '*.jpeg';
declare module '*.svg';
declare module '*.mjs';
declare module 'pdfjs-dist/build/pdf.worker.mjs?url';
interface ImportMetaEnv {
readonly VITE_API_URL?: string;
readonly VITE_LINK_TO_GITHUB?: string;
readonly VITE_LINK_TO_LINKEDIN?: string;
readonly VITE_IP_Server?: string;
readonly VITE_MAIL?: string;
readonly VITE_NAME?: string;
// add other env vars here as needed
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}