Initial commit: Full Crawl API implementation
Some checks failed
CI / Test (push) Has been cancelled
Deploy / Deploy to Staging (push) Has been cancelled
CI / Build & Push (push) Has been cancelled
Deploy / Deploy to Production (push) Has been cancelled

This commit is contained in:
2026-04-29 07:03:48 +00:00
commit 62994d4f3d
92 changed files with 6176 additions and 0 deletions

28
load-tests/smoke.js Normal file
View File

@@ -0,0 +1,28 @@
import http from 'k6/http';
import { check } from 'k6';
export const options = {
vus: 1,
duration: '1m',
};
const API_URL = __ENV.API_URL || 'http://localhost:3000';
const API_KEY = __ENV.API_KEY || 'test-key';
export default function () {
const res = http.post(
`${API_URL}/api/content`,
JSON.stringify({ url: 'https://example.com' }),
{
headers: {
'Content-Type': 'application/json',
'x-api-key': API_KEY,
},
}
);
check(res, {
'status is 200': (r) => r.status === 200,
'response has success': (r) => r.json('success') === true,
});
}