This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This can be in a server action or anywhere you create a payment link | |
const paymentLink = await stripe.paymentLinks.create({ | |
line_items: [ | |
{ | |
price: "price_123456789", // Replace with your actual Stripe Price ID | |
quantity: 1, | |
}, | |
], | |
// This encodes the user identification so you can securely reconcile the session on your end after payment processing | |
metadata: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Only a script | |
// If you need to add documents as well | |
import { PrismaClient, Recipe } from '@prisma/client'; | |
import { MeiliSearch } from 'meilisearch' | |
;(async () => { | |
const client = new MeiliSearch({ | |
host: 'MEILISEARCH_API_URL', | |
apiKey: 'MEILISEARCH_ADMIN_API_KEY', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npx expo start --go |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Install vercel cli | |
// npm i -g vercel | |
// log into vercel cli then run this file | |
const { exec } = require("child_process"); | |
exec("vercel project ls", (error, stdout, stderr) => { | |
if (error) { | |
console.log(`error: ${error.message}`); | |
return; |