@@ -37,24 +37,29 @@ This plugin gives you a new and isolated database for your preview deployments i
3737#### Inputs
3838
3939``` yaml
40- - name : databaseEnvVar
41- required : false
42- description : Database environment variable name
43- default : " DATABASE_URL"
44-
4540- name : databaseCreateCommand
4641 required : false
47- description : Command used to generate the instant database
42+ description : Command used to create the preview database
4843 default : " snaplet db create --git --latest"
4944
45+ - name : databaseDeleteCommand
46+ required : false
47+ description : Command used to delete the preview database
48+ default : " snaplet db delete --git"
49+
5050- name : databaseUrlCommand
5151 required : false
52- description : Command used to get the instant database url
52+ description : Command used to get the preview database url
5353 default : " snaplet db url --git"
5454
55+ - name : databaseUrlEnvKey
56+ required : false
57+ description : Preview database environment variable key
58+ default : " DATABASE_URL"
59+
5560- name : reset
5661 required : false
57- description : Reset the database state on each commit
62+ description : Reset the preview database state on each commit
5863 default : false
5964` ` `
6065
@@ -78,10 +83,15 @@ This plugin gives you a new and isolated database for your preview deployments i
7883
7984# ### Required Environment variables
8085
81- ```
82- NETLIFY_ACCESS_TOKEN=// API Access token found in Netlify user settings.
83- SNAPLET_ACCESS_TOKEN=// CLI Access token found in Snaplet UI
84- SNAPLET_PROJECT_ID=// Project ID found in Snaplet project settings.
86+ ` ` ` bash
87+ # Personal Access Token with "repo" scope, found in GitHub user settings
88+ GITHUB_ACCESS_TOKEN=
89+ # API Access token found in Netlify user settings
90+ NETLIFY_ACCESS_TOKEN=
91+ # CLI Access token found in Snaplet UI
92+ SNAPLET_ACCESS_TOKEN=
93+ # Project ID found in Snaplet project settings
94+ SNAPLET_PROJECT_ID=
8595` ` `
8696
8797# # How it works
0 commit comments