upload file size limit increased in server.ts
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m9s

This commit is contained in:
2025-11-22 23:41:41 -08:00
parent d4d1857a04
commit 1e54b0754b
3 changed files with 25 additions and 18 deletions

View File

@@ -1,21 +1,15 @@
// vitest.config.integration.ts
import path from 'path';
import { defineConfig } from 'vitest/config';
import { defineConfig, mergeConfig } from 'vitest/config';
import viteConfig from './vite.config';
/**
* This configuration is specifically for integration tests.
* It runs tests in a Node.js environment, as they need to interact with a live backend server.
* It MERGES with the main vite.config.ts to inherit plugins and aliases,
* then overrides the test-specific settings for a Node.js environment.
*/
export default defineConfig({
// Define the project root and aliases, just like in the main vite.config.ts.
// This is crucial for the test runner to correctly resolve module paths.
root: '.',
resolve: {
alias: {
'@': path.resolve(process.cwd(), './src'),
},
},
export default mergeConfig(viteConfig, defineConfig({
test: {
// Override settings from the main config for this specific test project.
name: 'integration',
environment: 'node',
// The path must be specific. By default, Vitest doesn't look in `src`
@@ -34,5 +28,5 @@ export default defineConfig({
reportsDirectory: '.coverage/integration',
clean: true,
},
},
});
}
}));