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
{{ message }}
Repository navigation
Commit f5a1020
Browse filesBrowse the repository at this point in the historyBrowse files
docs: add Netlify to the demo repository's README (#9)
* docs: add Netlify to the demo repository's README
* feat: get past Netlify's password page in the demo tests
* docs: exempt the preview password from Netlify's secrets scan
* fix: block Netlify's Deploy Preview drawer in the demo tests
* fix: allow a cold first sign-up in the demo setup test
* docs: link the Endform Netlify extension in the README
Copy file name to clipboardExpand all lines: README.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
👉 **[Follow the Playwright E2E tutorial: From Cowboy to Confidence →](https://endform.dev/docs/tutorial/playwright-e2e-from-cowboy-to-confidence)**
6
6
7
7
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fendformdev%2Fplaywright-tutorial&project-name=endform-playwright-example&repository-name=endform-playwright-example&products=%5B%7B%22type%22%3A%22integration%22%2C%22integrationSlug%22%3A%22endform%22%2C%22productSlug%22%3A%22endform%22%2C%22protocol%22%3A%22other%22%7D%5D)
8
+
[](https://app.netlify.com/start/deploy?repository=https://github.com/endformdev/playwright-tutorial)
8
9
9
10
## About the tutorial
10
11
@@ -33,7 +34,14 @@ You can either:
33
34
## Coming from "Deploy with Vercel"?
34
35
35
36
- Don't forget to connect your project with the Endform vercel integration
36
-
- You will need the `copy-me-github-workflows` copied to `.github/workflows` to get going with running your tests in github actions
37
+
- You will need to rename `rename-me-to-.github-for-workflows` to `.github` to get going with running your tests in GitHub Actions
38
+
39
+
## Coming from "Deploy to Netlify"?
40
+
41
+
-[Install the Endform extension](https://app.netlify.com/extensions/5exms8e7-endform) on your Netlify team, connect it to your Endform organization, then click **Configure project** on the new project
42
+
- The extension runs the tests against every Deploy Preview, so you don't need the GitHub Actions workflows
43
+
- If your Deploy Previews are password protected, add the password as a secret environment variable named `E2E_NETLIFY_PREVIEW_PASSWORD`, scoped to Deploy Previews, and add it to the project's `SECRETS_SCAN_OMIT_KEYS` so Netlify's secrets scan doesn't fail the build. The tests use it to get past Netlify's password page (see [`setup-utils.ts`](setup-utils.ts) and [`tests/test.ts`](tests/test.ts)). To do the same in your own tests, follow the [guide in the Endform docs](https://endform.dev/docs/guides/netlify-integration/password-protected-deploy-previews).
44
+
- To also see the results as a check on your pull requests, [install the Endform GitHub App](https://endform.dev/app/docs-link?link=settings-integrations) on the repository
37
45
38
46
## About the SaaS
39
47
@@ -127,9 +135,15 @@ When you're ready to deploy your SaaS application to production, follow these st
127
135
2. Connect your repository to [Vercel](https://vercel.com/) and deploy it.
128
136
3. Follow the Vercel deployment process, which will guide you through setting up your project.
129
137
138
+
### Deploy to Netlify
139
+
140
+
1. Push your code to a GitHub repository.
141
+
2. Import the repository on [Netlify](https://app.netlify.com/start). Netlify detects Next.js and pnpm, so the default build settings work.
142
+
3.[Install the Endform extension](https://app.netlify.com/extensions/5exms8e7-endform) to run the tests against each Deploy Preview.
143
+
130
144
### Add environment variables
131
145
132
-
In your Vercel project settings (or during deployment), add the necessary environment variables:
146
+
In your Vercel or Netlify project settings (or during deployment), add the necessary environment variables:
133
147
134
148
1.`BASE_URL`: Set this to your production domain.
135
149
2.`DATABASE_URL`: Leave unset to use the shared Durable Object proxy, set it to a local SQLite path, set it to your own proxy URL, or use a Turso connection string (`libsql://your-database.turso.io`)
0 commit comments