diff --git a/README.md b/README.md index 7e61218e..d18123c6 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ _Database schema changes are possible in the future_ 1-click Deploy to Vercel - -[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?demo-title=Photo+Blog&demo-description=Store+photos+with+original+camera+data&demo-url=https%3A%2F%2Fphotos.sambecker.com&demo-image=https%3A%2F%2Fphotos.sambecker.com%2Ftemplate-image-tight&project-name=Photo+Blog&repository-name=photo-blog&repository-url=https%3A%2F%2Fgithub.com%2Fsambecker%2Fphoto-blog&from=templates&skippable-integrations=1&env-description=Configure+your+photo+blog+meta&env-link=BLANK&env=NEXT_PUBLIC_SITE_TITLE&teamCreateStatus=hidden&stores=%5B%7B%22type%22%3A%22postgres%22%7D%2C%7B%22type%22%3A%22blob%22%7D%5D) +[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?demo-title=Photo+Blog&demo-description=Store+photos+with+original+camera+data&demo-url=https%3A%2F%2Fphotos.sambecker.com&demo-image=https%3A%2F%2Fphotos.sambecker.com%2Ftemplate-image-tight&project-name=Photo+Blog&repository-name=exif-photo-blog&repository-url=https%3A%2F%2Fgithub.com%2Fsambecker%2Fexif-photo-blog&from=templates&skippable-integrations=1&teamCreateStatus=hidden&stores=%5B%7B%22type%22%3A%22postgres%22%7D%2C%7B%22type%22%3A%22blob%22%7D%5D) Example App - diff --git a/src/app/(static)/template-url/route.tsx b/src/app/(static)/template-url/route.tsx index d0610986..6bf109cd 100644 --- a/src/app/(static)/template-url/route.tsx +++ b/src/app/(static)/template-url/route.tsx @@ -1,9 +1,12 @@ /* eslint-disable max-len */ import { NextResponse } from 'next/server'; +const REQUIRE_ENV_VARS = false; + const TITLE = 'Photo Blog'; const DESCRIPTION = 'Store photos with original camera data'; -const REPO_NAME = 'photo-blog'; +const REPO_TEAM = 'sambecker'; +const REPO_NAME = 'exif-photo-blog'; export function GET() { const url = new URL('https://vercel.com/new/clone'); @@ -15,14 +18,16 @@ export function GET() { url.searchParams.set('demo-image', 'https://photos.sambecker.com/template-image-tight'); url.searchParams.set('project-name', TITLE); url.searchParams.set('repository-name', REPO_NAME); - url.searchParams.set('repository-url', `https://github.com/sambecker/${REPO_NAME}`); + url.searchParams.set('repository-url', `https://github.com/${REPO_TEAM}/${REPO_NAME}`); url.searchParams.set('from', 'templates'); url.searchParams.set('skippable-integrations', '1'); - url.searchParams.set('env-description', 'Configure your photo blog meta'); - url.searchParams.set('env-link', 'BLANK'); - url.searchParams.set('env', [ - 'NEXT_PUBLIC_SITE_TITLE', - ].join(',')); + if (REQUIRE_ENV_VARS) { + url.searchParams.set('env-description', 'Configure your photo blog meta'); + url.searchParams.set('env-link', 'BLANK'); + url.searchParams.set('env', [ + 'NEXT_PUBLIC_SITE_TITLE', + ].join(',')); + } url.searchParams.set('teamCreateStatus', 'hidden'); url.searchParams.set('stores', JSON.stringify([ { type: 'postgres' }, diff --git a/src/site/SiteChecklistClient.tsx b/src/site/SiteChecklistClient.tsx index 45807419..f3d0fb59 100644 --- a/src/site/SiteChecklistClient.tsx +++ b/src/site/SiteChecklistClient.tsx @@ -120,8 +120,9 @@ export default function SiteChecklistClient({ title="Add title" status={hasTitle} isPending={isPendingPage} + optional > - Store in environment variable: + Store in environment variable (used in page titles): {renderEnvVars(['NEXT_PUBLIC_SITE_TITLE'])} - Store in environment variable: + Store in environment variable (displayed in top-right nav): {renderEnvVars(['NEXT_PUBLIC_SITE_DOMAIN'])} @@ -222,8 +223,8 @@ export default function SiteChecklistClient({ isPending={isPendingPage} optional > - Set environment variable to {'"1"'} to enable Pro Mode - (includes additional edge functions and higher quality images): + Set environment variable to {'"1"'} to enable + higher quality image storage: {renderEnvVars(['NEXT_PUBLIC_PRO_MODE'])}