From 4919f028c884a041da7ff098abb02389b4eac598 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Tue, 18 Apr 2023 03:02:17 +0800 Subject: ✨add envshare docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- envshare/app/deploy/page.tsx | 89 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 envshare/app/deploy/page.tsx (limited to 'envshare/app/deploy') diff --git a/envshare/app/deploy/page.tsx b/envshare/app/deploy/page.tsx new file mode 100644 index 0000000..b515144 --- /dev/null +++ b/envshare/app/deploy/page.tsx @@ -0,0 +1,89 @@ +"use client"; +import { ArrowTopRightOnSquareIcon } from "@heroicons/react/20/solid"; +import Link from "next/link"; +import { Title } from "@components/title"; +import React from "react"; +const steps: { + name: string; + description: string | React.ReactNode; + cta?: React.ReactNode; +}[] = [ + { + name: "Create a new Redis database on Upstash", + description: ( + <> + Upstash offers a serverless Redis database with a generous free tier of up to 10,000 requests per day. That's + more than enough. +
+ Click the button below to sign up and create a new Redis database on Upstash. + + ), + cta: ( + + Create Database + + + ), + }, + { + name: "Copy the REST connection credentials", + description: ( +

+ After creating the database, scroll to the bottom and make a note of UPSTASH_REDIS_REST_URL and{" "} + UPSTASH_REDIS_REST_TOKEN, you need them in the next step +

+ ), + }, + { + name: "Deploy to Vercel", + description: "Deploy the app to Vercel and paste the connection credentials into the environment variables.", + cta: ( + + Deploy + + + ), + }, +]; + +export default function Deploy() { + return ( +
+ Deploy EnvShare for Free +

+ You can deploy your own hosted version of EnvShare, you just need an Upstash and Vercel account. +

+
    + {steps.map((step, stepIdx) => ( +
  1. +
  2. + ))} +
+
+ ); +} -- cgit v1.2.3-70-g09d2