-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.ts
25 lines (21 loc) · 1000 Bytes
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2023-2024 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);
console.log('Current Deno version', Deno.version.deno);
console.log('Current TypeScript version', Deno.version.typescript);
console.log('Current V8 version', Deno.version.v8);