Skip to content

Add feature flag to disable contact form - #166

Merged
kunalkeshan merged 1 commit into
mainfrom
claude/contact-form-api-update-m8oyet
Jul 5, 2026
Merged

kunalkeshan merged 1 commit into
mainfrom
claude/contact-form-api-update-m8oyet

Conversation

@kunalkeshan

Copy link
Copy Markdown
Owner

Summary

Added a feature flag to allow disabling the contact form while providing users with alternative contact methods.

Key Changes

  • Added IS_CONTACT_FORM_ENABLED configuration flag in config/index.ts (currently set to false)
  • Updated the Contact component to check the feature flag and display an alternative message when the form is disabled
  • When disabled, users see a friendly message directing them to reach out via email or social links instead of the contact form

Implementation Details

  • The contact form now renders conditionally based on the IS_CONTACT_FORM_ENABLED flag
  • When disabled, a centered card with an envelope icon and helpful text is displayed
  • The alternative message maintains the same visual styling as the success state for consistency
  • The flag can be easily toggled in the config file to enable/disable the form without code changes

https://claude.ai/code/session_01QVSh2jGu8rPAZxRas7zN42

The contact form posted to api.kunalkeshan.dev, which no longer runs.
Add a reversible IS_CONTACT_FORM_ENABLED flag and swap the form for a
static notice pointing visitors to email/socials directly, with no
mention of the backend or its status.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QVSh2jGu8rPAZxRas7zN42
@vercel

vercel Bot commented Jul 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
kunalkeshan-dev Ready Ready Preview, Comment Jul 5, 2026 7:45pm

@kunalkeshan kunalkeshan left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before After
Image Image

@kunalkeshan
kunalkeshan merged commit f5efcb9 into main Jul 5, 2026
3 checks passed
@kunalkeshan
kunalkeshan deleted the claude/contact-form-api-update-m8oyet branch July 5, 2026 19:47

This branch was successfully deployed

1 active deployment
Preview — b895e28f Deployed Jul 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants