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
|
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
|
Example App
|
||||||
-
|
-
|
||||||
|
|||||||
@ -1,9 +1,12 @@
|
|||||||
/* eslint-disable max-len */
|
/* eslint-disable max-len */
|
||||||
import { NextResponse } from 'next/server';
|
import { NextResponse } from 'next/server';
|
||||||
|
|
||||||
|
const REQUIRE_ENV_VARS = false;
|
||||||
|
|
||||||
const TITLE = 'Photo Blog';
|
const TITLE = 'Photo Blog';
|
||||||
const DESCRIPTION = 'Store photos with original camera data';
|
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() {
|
export function GET() {
|
||||||
const url = new URL('https://vercel.com/new/clone');
|
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('demo-image', 'https://photos.sambecker.com/template-image-tight');
|
||||||
url.searchParams.set('project-name', TITLE);
|
url.searchParams.set('project-name', TITLE);
|
||||||
url.searchParams.set('repository-name', REPO_NAME);
|
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('from', 'templates');
|
||||||
url.searchParams.set('skippable-integrations', '1');
|
url.searchParams.set('skippable-integrations', '1');
|
||||||
url.searchParams.set('env-description', 'Configure your photo blog meta');
|
if (REQUIRE_ENV_VARS) {
|
||||||
url.searchParams.set('env-link', 'BLANK');
|
url.searchParams.set('env-description', 'Configure your photo blog meta');
|
||||||
url.searchParams.set('env', [
|
url.searchParams.set('env-link', 'BLANK');
|
||||||
'NEXT_PUBLIC_SITE_TITLE',
|
url.searchParams.set('env', [
|
||||||
].join(','));
|
'NEXT_PUBLIC_SITE_TITLE',
|
||||||
|
].join(','));
|
||||||
|
}
|
||||||
url.searchParams.set('teamCreateStatus', 'hidden');
|
url.searchParams.set('teamCreateStatus', 'hidden');
|
||||||
url.searchParams.set('stores', JSON.stringify([
|
url.searchParams.set('stores', JSON.stringify([
|
||||||
{ type: 'postgres' },
|
{ type: 'postgres' },
|
||||||
|
|||||||
@ -120,8 +120,9 @@ export default function SiteChecklistClient({
|
|||||||
title="Add title"
|
title="Add title"
|
||||||
status={hasTitle}
|
status={hasTitle}
|
||||||
isPending={isPendingPage}
|
isPending={isPendingPage}
|
||||||
|
optional
|
||||||
>
|
>
|
||||||
Store in environment variable:
|
Store in environment variable (used in page titles):
|
||||||
{renderEnvVars(['NEXT_PUBLIC_SITE_TITLE'])}
|
{renderEnvVars(['NEXT_PUBLIC_SITE_TITLE'])}
|
||||||
</ChecklistRow>
|
</ChecklistRow>
|
||||||
<ChecklistRow
|
<ChecklistRow
|
||||||
@ -130,7 +131,7 @@ export default function SiteChecklistClient({
|
|||||||
isPending={isPendingPage}
|
isPending={isPendingPage}
|
||||||
optional
|
optional
|
||||||
>
|
>
|
||||||
Store in environment variable:
|
Store in environment variable (displayed in top-right nav):
|
||||||
{renderEnvVars(['NEXT_PUBLIC_SITE_DOMAIN'])}
|
{renderEnvVars(['NEXT_PUBLIC_SITE_DOMAIN'])}
|
||||||
</ChecklistRow>
|
</ChecklistRow>
|
||||||
</Checklist>
|
</Checklist>
|
||||||
@ -222,8 +223,8 @@ export default function SiteChecklistClient({
|
|||||||
isPending={isPendingPage}
|
isPending={isPendingPage}
|
||||||
optional
|
optional
|
||||||
>
|
>
|
||||||
Set environment variable to {'"1"'} to enable Pro Mode
|
Set environment variable to {'"1"'} to enable
|
||||||
(includes additional edge functions and higher quality images):
|
higher quality image storage:
|
||||||
{renderEnvVars(['NEXT_PUBLIC_PRO_MODE'])}
|
{renderEnvVars(['NEXT_PUBLIC_PRO_MODE'])}
|
||||||
</ChecklistRow>
|
</ChecklistRow>
|
||||||
</Checklist>
|
</Checklist>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user