Refine checklist language, make 'title' optional
This commit is contained in:
parent
ebc12809d1
commit
8a2eb21b50
@ -11,7 +11,7 @@ _Database schema changes are possible in the future_
|
||||
1-click Deploy to Vercel
|
||||
-
|
||||
|
||||
[](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)
|
||||
[](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
|
||||
-
|
||||
|
||||
@ -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' },
|
||||
|
||||
@ -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'])}
|
||||
</ChecklistRow>
|
||||
<ChecklistRow
|
||||
@ -130,7 +131,7 @@ export default function SiteChecklistClient({
|
||||
isPending={isPendingPage}
|
||||
optional
|
||||
>
|
||||
Store in environment variable:
|
||||
Store in environment variable (displayed in top-right nav):
|
||||
{renderEnvVars(['NEXT_PUBLIC_SITE_DOMAIN'])}
|
||||
</ChecklistRow>
|
||||
</Checklist>
|
||||
@ -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'])}
|
||||
</ChecklistRow>
|
||||
</Checklist>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user