Skip to content

Instantly share code, notes, and snippets.

@jcipriano
Created March 31, 2023 18:51
Show Gist options
  • Save jcipriano/6800b281aa4277d46e83209f1e7a3e7f to your computer and use it in GitHub Desktop.
Save jcipriano/6800b281aa4277d46e83209f1e7a3e7f to your computer and use it in GitHub Desktop.
[template.environment]
VITE_TURSO_DB_URL = "VITE_TURSO_DB_URL"
VITE_TURSO_DB_AUTH_TOKEN = "VITE_TURSO_DB_AUTH_TOKEN"
<a href="https://app.netlify.com/start/deploy?repository=https://github.com/turso-extended/findmeon"><img src="https://www.netlify.com/img/deploy/button.svg" alt="Deploy to Netlify"></a>
@jcipriano
Copy link
Author

jcipriano commented Mar 31, 2023

Recommendations:

  • Add a netlify.toml file to root of repo. This will prompt the developer to set the env vars before deploying.
  • Use html link above in guide. This link will open a Netlify URL, prompt the user for env vars, create a new repo and deploy in one swoop. A markdown snippet also provided above. Notice the repository param in the URL pointing to your repo.
  • Set project to use URL env var instead of VITE_BASE_URL. URL is a read-only env var automatically provided by Netlify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment