Skip to content

Conversation

ronitize
Copy link

@ronitize ronitize commented Sep 29, 2025

fix #6

  • ensure best practices with the use of env and other underlying services by the framework
  • name it as with-nuxt
  • use prettier as done in main /export-all-customers-to-csv
  • install the latest version of Polar and Nuxt
  • maintain seperate API routes for each, Webhooks handler, Customer Portal handler and Checkout handler
  • add an optional build-time script that validates if the access token used is valid for creating a checkout session in the relevant Polar mode (sandbox/production)
  • create an installation guide like as in neondatabase/examples@main/with-nestjs
  • create the .env.example with the comments to the guides links of where the values can be obtained from
  • share the deployed application to Vercel with the recording of all the 3 functionalities working

Deployed URL - https://polar-nuxt.vercel.app

Video Recording :

output.mp4

Copy link

vercel bot commented Sep 29, 2025

@ronitize is attempting to deploy a commit to the polar-sh Team on Vercel.

A member of the Team first needs to authorize it.

@ronitize
Copy link
Author

@rishi-raj-jain can I get a review on this .

@rishi-raj-jain rishi-raj-jain self-requested a review September 29, 2025 20:41
Copy link
Member

@rishi-raj-jain rishi-raj-jain left a comment

Choose a reason for hiding this comment

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

@rishi-raj-jain
Copy link
Member

rishi-raj-jain commented Sep 29, 2025

This is amazing btw! Loved your submission!

Comment on lines 9 to 12
<script setup lang="ts">
// You can leave this script block empty.
// It's a good place for app-wide logic if you need it later.
</script>
Copy link
Member

Choose a reason for hiding this comment

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

is this required? can this be removed?

@rishi-raj-jain
Copy link
Member

I've updated the bounty to be $150 for the efforts.

@ronitize
Copy link
Author

@rishi-raj-jain if the examples are for beginners wouldn't this scope.ts setup with the package.json script would be complex for them ? There is no harm for them to have an extra env variable

@rishi-raj-jain
Copy link
Member

@ronitize

Nope, since beginners have to learn this way of using Polar for managing the ideal environments. A script like this is a no brainer for someone who knows how to code their Astro/Nuxt project :)

@rishi-raj-jain
Copy link
Member

Should've clarified in my original message, the envs now should be only:

  • POLAR_MODE (set by the script in the .env file) but in .env.example it should be POLAR_MODE="sandbox"
  • POLAT_OAT (or POLAR_ACCESS_TOKEN)
  • POLAR_WEBHOOK_SECRET
  • POLAR_SUCCESS_URL

@ronitize
Copy link
Author

ronitize commented Sep 30, 2025

@rishi-raj-jain can I get a review on this

@ronitize
Copy link
Author

ronitize commented Oct 1, 2025

@rishi-raj-jain can we get this merged by EOD?

@rishi-raj-jain
Copy link
Member

@ronitize Unfortunately not, I'll be taking a look at the weekend.

@ronitize
Copy link
Author

ronitize commented Oct 4, 2025

@rishi-raj-jain Should we finish this today?

@ronitize
Copy link
Author

ronitize commented Oct 6, 2025

@rishi-raj-jain any particular reason of delaying this ?

@rishi-raj-jain
Copy link
Member

@ronitize no reason in particular, just that I am buried under the number of tickets people are opening with Polar support :)

@ronitize
Copy link
Author

ronitize commented Oct 9, 2025

@rishi-raj-jain The issue which the pr solves is now like a month old , I get you are over burdened with polar support .

Check this url for an easier diff since your last review .

16ac9a1...05af0dd

@rishi-raj-jain
Copy link
Member

The issue which the pr solves is now like a month old , I get you are over burdened with polar support .

Thank you for showing empathy with my situation. Don't worry, I'll take a look at it soon.

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.

Nuxt example with Webhooks, Customer Portal and Checkout creation

2 participants