You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just click the button bellow and follow the wizard to create a new project, set environment variables, build and deploy.
203
+
204
+
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fnemanjam%2Fnemanjam.github.io&env=SITE_URL%2CPLAUSIBLE_DOMAIN%2CPLAUSIBLE_SCRIPT_URL&envDefaults=%7B%22SITE_URL%22%3A%22https%3A%2F%2Fmy-blog.vercel.app%22%2C%22PLAUSIBLE_DOMAIN%22%3A%22my-blog.vercel.app%22%2C%22PLAUSIBLE_SCRIPT_URL%22%3A%22https%3A%2F%2Fplausible.io%2Fjs%2Fscript.js%22%7D&envDescription=https%3A%2F%2Fgithub.com%2Fnemanjam%2Fnemanjam.github.io%2Ftree%2Fvercel-deploy%2Fdocs%2Fvercel-deployment-frontend.md%23environment-variables&envLink=https%3A%2F%2Fgithub.com%2Fnemanjam%2Fnemanjam.github.io%2Fblob%2Fmain%2F.env.production.example&project-name=Developer%20blog&repository-name=nemanjam.github.io&demo-title=Developer%20blog%20built%20with%20Astro%20and%20Tailwind&demo-description=Developer%20blog%20website%20with%20a%20comprehensive%20feature%20set%20and%20well%20structured%20code.&demo-url=https%3A%2F%2Fnemanjam.vercel.app&demo-image=https%3A%2F%2Fgithub.com%2Fnemanjam%2Fnemanjam.github.io%2Fblob%2Fmain%2Fdocs%2Fscreenshots%2Fdeveloper-blog-screenshot-1200x630.png&skippable-integrations=1)
205
+
206
+
#### Local
207
+
208
+
Create a new Vercel project, and deploy it using Vercel CLI.
209
+
210
+
```bash
211
+
# Install Vercel CLI
212
+
pnpm install -g vercel
213
+
214
+
# Log in to Vercel
215
+
vercel login
216
+
217
+
# Deploy for the first time (production)
218
+
# Fill prompts for name (will determine your website url), root directory `./` (vercel.json dir)
219
+
vercel --prod
220
+
221
+
# Set required environment variables (production)
222
+
echo"https://my-blog.vercel.app"| vercel env add SITE_URL production
223
+
echo"my-blog.vercel.app"| vercel env add PLAUSIBLE_DOMAIN production
224
+
echo"https://plausible.io/js/script.js"| vercel env add PLAUSIBLE_SCRIPT_URL production
225
+
# Set more optional variables...
226
+
227
+
# List existing environment variables
228
+
vercel env ls
229
+
230
+
# Redeploy after changes
231
+
vercel --prod # production
232
+
233
+
# After deploy, the CLI outputs the URL
234
+
# Example: https://my-blog.vercel.app
235
+
236
+
# Debug deployment
237
+
vercel inspect https://my-blog.vercel.app --json
238
+
```
239
+
240
+
#### Github Actions
241
+
242
+
In Vercel dashboard create a new project and set the environment variables. In Vercel account settings create a access token and set it as `VERCEL_TOKEN` Github repository secret. In Vercel project settings copy your user id and project id and set them as `VERCEL_ORG_ID` and `VERCEL_PROJECT_ID` Github repository secrets.
0 commit comments