This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default tseslint.config({ extends: [ // Remove ...tseslint.configs.recommended and replace with this ...tseslint.configs.recommendedTypeChecked, // Alternatively, use this for stricter rules ...tseslint.configs.strictTypeChecked, // Optionally, add this for stylistic rules ...tseslint.configs.stylisticTypeChecked, ], languageOptions: { // other options... parserOptions: { project: ['./tsconfig.node.json', './tsconfig.app.json'], tsconfigRootDir: import.meta.dirname, }, }, })You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js import reactX from 'eslint-plugin-react-x' import reactDom from 'eslint-plugin-react-dom' export default tseslint.config({ plugins: { // Add the react-x and react-dom plugins 'react-x': reactX, 'react-dom': reactDom, }, rules: { // other rules... // Enable its recommended typescript rules ...reactX.configs['recommended-typescript'].rules, ...reactDom.configs.recommended.rules, }, })This is the official website for K8sGPT, a tool for scanning your Kubernetes clusters, diagnosing, and triaging issues in simple English.
- Modern, responsive design
- Comprehensive information about K8sGPT features
- Community resources and links
- Mobile-friendly interface
To run the development server:
npm install npm run devThis site is configured for deployment on Netlify. To deploy:
- Push your code to a Git repository (GitHub, GitLab, or Bitbucket)
- Log in to your Netlify account
- Click "Add new site" > "Import an existing project"
- Connect to your Git provider and select the repository
- Configure the build settings:
- Build command:
npm run build:netlify - Publish directory:
dist - Node version: 18.18.0 (set in
.node-versionfile)
- Build command:
- Click "Deploy site"
You can also deploy manually using the Netlify CLI:
# Install Netlify CLI npm install -g netlify-cli # Login to Netlify netlify login # Initialize and deploy netlify init netlify deploy --prodK8sGPT is released under the Apache-2.0 License.