Commit Graph

5 Commits

Author SHA1 Message Date
ed6700be85 Add worker configs to allow n8n.mylder.io HTTP requests
- wws blocks external HTTP requests by default
- Add index.toml with allowed_hosts for chat and webhook

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 06:07:54 +01:00
838cac2bbf Use addEventListener fetch pattern for wws
- Switch to addEventListener('fetch') pattern
- Use response.headers.set() instead of headers object
- wws uses Fetch API event handler pattern
- Avoid URL constructor (not available in wws)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 06:03:42 +01:00
3fcebac27f Switch to ES module exports for wws runtime
- Replace module.exports with export default
- wws uses ES modules, not CommonJS
- Fixes 'module is not defined' error

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 06:01:10 +01:00
02d32536a0 Fix wws runtime compatibility - use module.exports pattern
- Update api/index.js to use handler export format
- Update chat/index.js to use handler export format
- Update webhook/index.js to use handler export format
- Remove addEventListener('fetch') pattern incompatible with wws
- Remove URL API usage (not available in wws JS runtime)
- Remove spread operator for better compatibility

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 05:56:18 +01:00
c8a8ea007d Initial wws serverless functions setup
- Add health check API endpoint (/api)
- Add chat proxy to n8n workflow (/chat)
- Add webhook receiver for external integrations (/webhook)
- Add Dockerfile for container deployment
- Add wws.toml configuration

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 05:43:11 +01:00