Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Purple checkout maintenance mode option #32

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

danieldaquino
Copy link
Contributor

@danieldaquino danieldaquino commented Nov 1, 2024

This adds a purple checkout "maintenance mode" option.

To activate it, simply make a route called /purple-checkout-maintenance available (returns HTTP 200).

In a static build, this can be done by creating a file called purple-checkout-maintenance at the root of wherever the static built files are being hosted:

touch /path/to/static/files/purple-checkout-maintenance

When present, the checkout page will be replaced with a maintenance message.

How it looks like

Screenshot 2024-11-01 at 10 35 40

Testing

Website: 4aeb94d98eef34e1bd9dc0accc8ceefca393407c
Setup: Running on npm run dev
Steps:

  1. Go to purple checkout, see if shows up. PASS
  2. touch public/purple-checkout-maintenance on the local repo
  3. Refresh page, make sure maintenance message appears. PASS

Other notes

This PR is built on top of e9a9ffee71317c51fe6c8b9c8c32ff18bd006eea, which does not include changes from damus-io/notedeck#330, and this is on purpose as that is still only deployed in staging and this PR is a "hot-fix" of sorts.

@danieldaquino danieldaquino requested a review from jb55 November 1, 2024 17:47
@danieldaquino danieldaquino merged commit 1007f44 into damus-io:master Jan 2, 2025
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.

1 participant