Skip to content

Commit facd7a1

Browse files
eypsilonclaude
andcommitted
Fix Vercel routing for demo fetch request
Changed fetch URL from 'get.php' to './get.php' to ensure relative path resolution. When deployed at /example, the request now correctly resolves to /example/get.php instead of /get.php (root). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent cc6cf6c commit facd7a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ <h3 style="margin-bottom: 0.5rem;">⚡ Powered by YEH</h3>
12691269
messagesContainer.style.display = 'none';
12701270

12711271
try {
1272-
const response = await fetch('get.php', {
1272+
const response = await fetch('./get.php', {
12731273
method: 'POST',
12741274
body: new FormData(form)
12751275
});

0 commit comments

Comments
 (0)