Skip to content

Commit 4fe421e

Browse files
committed
vercel docs in progress
1 parent e9a29b5 commit 4fe421e

4 files changed

Lines changed: 70 additions & 19 deletions

File tree

.env.development.example

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
1-
# SSG - ALL env vars are BUILD time ONLY
1+
# Static generation - ALL environment variables are BUILD time ONLY.
2+
# Inlined at build time and immutable at runtime.
23

3-
# must have https:// or http://
4-
SITE_URL=http://localhost:3000
4+
# --------------- Required ---------------
55

6-
# always true in development, set only on prod build
7-
# PREVIEW_MODE=
6+
# Your website url.
7+
# Includes protocol https:// or http://, no trailing slash '/'.
8+
# Example values: SITE_URL=http://localhost:3000
9+
SITE_URL=http://localhost:3000
810

9-
# Plausible analytics url
11+
# Url of the 'script.js' file hosted on Plausible analytics server.
12+
# Safe to omit in development.
13+
# Can be either hosted by Plausible or your own self-hosted server instance.
14+
# Example values: https://plausible.io/js/script.js | https://plausible.arm1.nemanjamitic.com/js/script.js
1015
PLAUSIBLE_SCRIPT_URL=
1116

12-
# for mirrors, hostname set in Plausible dashboard
13-
# if not set, defaults to SITE_URL without https://
17+
# --------------- Optional ---------------
18+
19+
# Domain that identifies your website instance in Plausible analytics dashboard.
20+
# Safe to omit in development.
21+
# Example values: localhost:3000 | empty
22+
# Default value: SITE_URL without https://
1423
PLAUSIBLE_DOMAIN=
24+
25+
# Include draft posts and projects.
26+
# Ignored in development. Drafts are always included in development.
27+
# Example values: true | false | empty
28+
# Default value: false
29+
PREVIEW_MODE=
30+

.env.production.example

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
1-
# SSG - ALL env vars are BUILD time ONLY
1+
# Static generation - ALL environment variables are BUILD time ONLY.
2+
# Inlined at build time and immutable at runtime.
23

3-
# with https://
4-
# https://nemanjamitic.com | https://nemanjam.github.io
5-
SITE_URL=https://nemanjam.github.io
4+
# --------------- Required ---------------
65

7-
# see draft posts and projects, true | false | empty
8-
# optional, default false, set only on prod build
9-
PREVIEW_MODE=
6+
# Your website url.
7+
# Includes protocol https:// or http://, no trailing slash '/'.
8+
# Example values: https://nemanjamitic.com | https://nemanjam.github.io | https://nemanjam.vercel.app
9+
SITE_URL=https://nemanjam.github.io
1010

11-
# plausible analytics url
11+
# Url of the 'script.js' file hosted on Plausible analytics server.
12+
# Can be either hosted by Plausible or your own self-hosted server instance.
13+
# Example values: https://plausible.io/js/script.js | https://plausible.arm1.nemanjamitic.com/js/script.js
1214
PLAUSIBLE_SCRIPT_URL=
1315

14-
# for mirrors, hostname set in Plausible dashboard
15-
# if not set, defaults to SITE_URL without https://
16-
PLAUSIBLE_DOMAIN=nemanjamitic.com
16+
# --------------- Optional ---------------
17+
18+
# Domain that identifies your website instance in Plausible analytics dashboard.
19+
# Example values: nemanjamitic.com | nemanjam.github.io | nemanjam.vercel.app
20+
# Default value: SITE_URL without https://
21+
PLAUSIBLE_DOMAIN=nemanjamitic.com
22+
23+
# Include draft posts and projects.
24+
# Set only in production build.
25+
# Example values: true | false | empty
26+
# Default value: false
27+
PREVIEW_MODE=
28+
521 KB
Loading
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
```ts
2+
3+
4+
`
5+
https://vercel.com/new/clone
6+
repository-url=https://github.com/nemanjam/nemanjam.github.io
7+
env=SITE_URL,PLAUSIBLE_DOMAIN,PLAUSIBLE_SCRIPT_URL
8+
envDefaults={
9+
"SITE_URL": "https://my-blog.vercel.app",
10+
"PLAUSIBLE_DOMAIN": "my-blog.vercel.app",
11+
"PLAUSIBLE_SCRIPT_URL": "https://plausible.io/js/script.js",
12+
}
13+
envDescription=https://github.com/nemanjam/nemanjam.github.io/tree/vercel-deploy/docs/vercel-deployment-frontend.md#environment-variables
14+
envLink=https://github.com/nemanjam/nemanjam.github.io/blob/main/.env.production.example
15+
project-name=Developer blog
16+
repository-name=nemanjam.github.io
17+
demo-title=Developer blog built with Astro and Tailwind
18+
demo-description=Developer blog website with a comprehensive feature set and well structured code.
19+
demo-url=https://nemanjam.vercel.app
20+
demo-image=https://github.com/nemanjam/nemanjam.github.io/blob/main/docs/screenshots/developer-blog-screenshot-1200x630.png
21+
&skippable-integrations=1
22+
`
23+
```

0 commit comments

Comments
 (0)