forked from denoland/saaskit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.ts
21 lines (18 loc) · 818 Bytes
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2023 the Deno authors. All rights reserved. MIT license.
/// <reference no-default-lib="true" />
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
/// <reference lib="deno.ns" />
/// <reference lib="deno.unstable" />
import { start } from "$fresh/server.ts";
import manifest from "./fresh.gen.ts";
import config from "./fresh.config.ts";
import { isStripeEnabled } from "@/utils/stripe.ts";
console.log(
isStripeEnabled()
? "`STRIPE_SECRET_KEY` environment variable is defined. Stripe is enabled."
: "`STRIPE_SECRET_KEY` environment variable is not defined. Stripe is disabled.\n" +
"For more information on how to set up Stripe, see https://github.com/denoland/saaskit#set-up-stripe-optional",
);
await start(manifest, config);