Skip to content

removed sound fixed dev stripe#30

Open
Adrian-Thiesen wants to merge 2 commits into
productionfrom
fix-sharing-desktop-and-stripe-dev
Open

removed sound fixed dev stripe#30
Adrian-Thiesen wants to merge 2 commits into
productionfrom
fix-sharing-desktop-and-stripe-dev

Conversation

@Adrian-Thiesen

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Dec 23, 2025

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit a0d1657):

https://whatsanalyze-wrapped--pr-30-ru3652jk.web.app

(expires Tue, 30 Dec 2025 13:00:14 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 0bd15b540c352926caab0be20dfab09d7e234037

.map((o) => o.trim());

// Always allow the main app domain
allowed.push("https://whatsanalyze-wrapped.web.app");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

mhm sinnvoller wäre es die domain in das .env.whatsanalyze-wrapped file mit aufzunehmen oder?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Firebase deploy wird automatisch ausgeführt Beil pull request oder muss ich das local machen?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

mein vorgehen beim debuggen wäre so:
damit kannst du lokla so tun als wäre der request von wo anders her, und somit kannst du genau die domäne testen:

curl -X GET https://us-central1-whatsanalyze-wrapped-prod.cloudfunctions.net/createCheckoutSession
-H "Origin: https://whatsanalyze-wrapped--pr-21-ti2uynz7.web.app"
-H "Content-Type: application/json"
-d '{"data":{}}'

du musst nur die url nach get anpassen auf das wo die functions lokal laufen und den origin auf das was halt dev zeigt.

dann solltest du sehen dass es lokal failed. Ich würde dann in dem code snippet wo du die änderungen gemacht hast mal loggen was denn eigentlich in den allowed origin steht, also was da ankommt. vermutlich ist die logik davor etwas falsch

Firebase deploy wird automatisch ausgeführt Beil pull request oder muss ich das local machen?

es wird nur das FE deployed die functions müssen alle manuell deployed werden. habe das nicht mit aufgenommen, weil das ja immer so ewig läuft und wir da in zukunft vermutlich nie mehr was ändern


export const createCheckoutSession = onCall(
{secrets: [stripeSecretKey]},
{secrets: [stripeSecretKey], cors: true},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ich glaube das brauchen wir nicht, das hat ja bis jetzt immer funktioniert


export const createCustomerPortal = onCall(
{secrets: [stripeSecretKey]},
{secrets: [stripeSecretKey], cors: true},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

hier auch

// strip redirects them with a sessionid; with this endpoint here we can retrieve the customer info and use it to login
export const getCheckoutSession = onCall(
{secrets: [stripeSecretKey]},
{secrets: [stripeSecretKey], cors: true},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

.

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