feat: INS landing page with lead form

Page sends document.referrer in the lead body; the request Referer
header only ever holds the landing page URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfmHGGiYUjNcvJoyzdf
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-12-01 10:37:35 +08:00
1 parent 32c0d835cd
commit d71ba850e8
5 files changed
+343 -5

No files matched your search

+2 -1
View File
@@ -28,6 +28,7 @@ const valid = {
industry: 'Hospitality',
message: 'Need guest Wi-Fi for 120 rooms',
utm_source: 'google',
referrer: 'https://www.google.com/',
};
const post = (body) =>
@@ -58,7 +59,7 @@ test('valid lead is stored', async () => {
assert.strictEqual(r[0].name, valid.name);
assert.strictEqual(r[0].company, valid.company);
assert.strictEqual(r[0].utm_source, 'google');
assert.strictEqual(r[0].referrer, 'https://ads.example.com/');
assert.strictEqual(r[0].referrer, 'https://www.google.com/');
assert.ok(r[0].created_at);
});