fix(ci): configure CI env and fix TypeScript types #26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes the frontend CI pipeline and TypeScript configuration. It addresses issues where
import.meta.envwas not properly typed, causing type-check failures, and ensures theVITE_API_BASE_URLis correctly properly available during the CI build process.Related Issues
Changes
src/vite-env.d.tswith explicitImportMetaEnvinterface definitions to fixTS2339errors regardingimport.meta.env.tsconfig.app.jsonto strictly includesrc/vite-env.d.tsvia thefilesarray, ensuring types are always loaded.guarantees the build environment matches local configuration patterns..env.exampleto guide local development setup.How to Test
npm installinfrontend/.npm run type-check. It should pass without errors.npm run dev. The app should start and connect tohttp://localhost:8000/api/v1(verify in network tab or console).Checklist