You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
270 B
TypeScript

import { env } from '$env/dynamic/private'
import { Checkout } from '@polar-sh/sveltekit'
export const GET = Checkout({
accessToken: env.PRIVATE_POLAR_ACCESS_KEY,
successUrl: env.APP_URL + '/dashboard/',
server: env.APP_ENV === 'prod' ? 'production' : 'sandbox',
})