This commit is contained in:
2026-04-04 18:59:34 +02:00
parent 4c989928f1
commit 94fb38e038
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ export default [
ignores: ['dist/**', 'build/**', 'node_modules/**'], ignores: ['dist/**', 'build/**', 'node_modules/**'],
}, },
{ {
files: ['src/**/*.{ts,tsx}', 'vite.config.ts', 'vitest.setup.ts'], files: ['src/**/*.{ts,tsx}', 'vite.config.mts', 'vitest.setup.ts'],
languageOptions: { languageOptions: {
parser: tsParser, parser: tsParser,
ecmaVersion: 'latest', ecmaVersion: 'latest',
+1 -1
View File
@@ -53,7 +53,7 @@
"dev": "vite", "dev": "vite",
"start": "vite", "start": "vite",
"build": "vite build", "build": "vite build",
"lint": "eslint \"src/**/*.{ts,tsx}\" vite.config.ts vitest.setup.ts", "lint": "eslint \"src/**/*.{ts,tsx}\" vite.config.mts vitest.setup.ts",
"preview": "vite preview", "preview": "vite preview",
"test": "vitest run", "test": "vitest run",
"test:watch": "vitest" "test:watch": "vitest"
+1 -1
View File
@@ -19,5 +19,5 @@ vi.mock('react-router-dom', async () => {
}); });
test('renders App', () => { test('renders App', () => {
render(<App faro={undefined}/>); render(<App />);
}); });
+1 -1
View File
@@ -24,6 +24,6 @@
}, },
"include": [ "include": [
"src", "src",
"vite.config.ts" "vite.config.mts"
] ]
} }
@@ -4,13 +4,13 @@ import react from '@vitejs/plugin-react';
export default defineConfig(({ mode }) => { export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), ''); const env = loadEnv(mode, process.cwd(), '');
const port = Number(env.PORT || 5173); const port = Number(env.PORT || 5173);
const https = env.HTTPS === 'true'; const httpsEnabled = env.HTTPS === 'true';
return { return {
plugins: [react()], plugins: [react()],
server: { server: {
port, port,
https, ...(httpsEnabled ? { https: {} } : {}),
strictPort: true, strictPort: true,
allowedHosts: ['localhost', 'host.docker.internal', 'frontend'], allowedHosts: ['localhost', 'host.docker.internal', 'frontend'],
}, },