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

Copy button doesn't work on custom domains #42

Closed
0xb1b1 opened this issue Nov 20, 2023 · 1 comment
Closed

Copy button doesn't work on custom domains #42

0xb1b1 opened this issue Nov 20, 2023 · 1 comment

Comments

@0xb1b1
Copy link

0xb1b1 commented Nov 20, 2023

I changed the default URL to my URL and the copy button (the one next to your new sentry->discord webhook) no longer works.

diff --git a/pages/create.tsx b/pages/create.tsx
index 1fb9cc4..6f97975 100644
--- a/pages/create.tsx
+++ b/pages/create.tsx
@@ -30,7 +30,7 @@ export default function Create() {
     setValue(event.currentTarget.value);
   };

-  const getWebhookURL = () => `https://sentrydiscord.dev/api/webhooks/${key}`;
+  const getWebhookURL = () => `http://<my domain>/api/webhooks/${key}`;

   const onClick = async (event) => {
     event.preventDefault();
@IanMitchell
Copy link
Owner

Not sure why that would break, sorry! It might require additional work to change that. Given it works on the main website though I'm going to close this issue

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

No branches or pull requests

2 participants