diff --git a/frontend/src/env.d.ts b/frontend/src/env.d.ts index c630993..260b764 100644 --- a/frontend/src/env.d.ts +++ b/frontend/src/env.d.ts @@ -4,6 +4,9 @@ interface ImportMetaEnv { readonly PUBLIC_DIRECTUS_URL: string; readonly DIRECTUS_ADMIN_TOKEN: string; readonly PUBLIC_PLATFORM_DOMAIN: string; + readonly DEV: boolean; + readonly PROD: boolean; + readonly MODE: string; } interface ImportMeta { diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 4c016b5..5dee9a1 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -1,22 +1,35 @@ { - "extends": "astro/tsconfigs/strict", "compilerOptions": { + "target": "ESNext", + "module": "ESNext", + "moduleResolution": "bundler", + "lib": [ + "ESNext", + "DOM", + "DOM.Iterable" + ], + "jsx": "react-jsx", + "jsxImportSource": "react", + "strict": true, + "skipLibCheck": true, + "noEmit": true, + "isolatedModules": true, + "esModuleInterop": true, + "resolveJsonModule": true, + "allowSyntheticDefaultImports": true, "baseUrl": ".", "paths": { "@/*": [ "src/*" - ], - "@/components/*": [ - "src/components/*" - ], - "@/lib/*": [ - "src/lib/*" - ], - "@/types/*": [ - "src/types/*" ] - }, - "jsx": "react-jsx", - "jsxImportSource": "react" - } + } + }, + "include": [ + "src/**/*", + "src/env.d.ts" + ], + "exclude": [ + "node_modules", + "dist" + ] } \ No newline at end of file