> ## Documentation Index
> Fetch the complete documentation index at: https://docs.commonality.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Vite

### Check all applications use the same build configuration

```ts .commonality/has-vite-config.ts theme={null}
import { hasTextFile } from 'commonality-checks-recommended';

export default hasTextFile('vite.config.js', [
  "import { defineConfig } from 'vite';",
  '',
  'export default defineConfig({',
  '  server: {',
  '    port: 3000,',
  '  },',
  '  build: {',
  "    outDir: 'dist',",
  '  },',
  '  resolve: {',
  '    alias: {',
  "      '@': '/src',",
  '    },',
  '  },',
  '})',
]);
```

```json .commonality/config.json theme={null}
{
  "checks": [
    "application": [
      "has-vite-config"
    ]
  ]
}
```
