Skip to content

Instantly share code, notes, and snippets.

View nandanmen's full-sized avatar

Nanda Syahrasyad nandanmen

View GitHub Profile
{
"AF": {
"name": "Afghanistan",
"discount": 60
},
"EG": {
"name": "Egypt",
"discount": 60
},
"IR": {
import { getCloudflareContext } from "@opennextjs/cloudflare";
import discountTable from "./discount-table.json";
import { BuyButtonClient } from "./buy-button-client";
const discountToCode = {
30: "AZOTQ1NA",
40: "Q2MTYZOQ",
50: "CXMDI1NA",
60: "KWNDQYMA",
};