Skip to content

Commit 9bef8fa

Browse files
committed
🦥 Run e2e tests on prod build
1 parent ad2e724 commit 9bef8fa

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

‎.env.example

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ NEXTAUTH_SECRET=810bd1ccbf7b1d388d98339ac86d420649bdb789c9ac0c1fad383820341b1773
55

66
# Generate from https://github.com/settings/developers
77
GITHUB_ID=
8-
GITHUB_SECRET=
8+
GITHUB_SECRET=
9+
10+
PLAYWRIGHT=true

‎.github/workflows/checks.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
timeout-minutes: 60
1010
runs-on: ubuntu-latest
1111
env:
12+
PLAYWRIGHT: true
1213
DRIZZLE_DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
1314
services:
1415
postgres:

‎playwright.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default defineConfig({
2929
],
3030

3131
webServer: {
32-
command: "pnpm dev",
32+
command: "pnpm start",
3333
url: baseURL,
3434
reuseExistingServer: !process.env.CI,
3535
},

‎src/lib/auth.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const {
99
auth,
1010
handlers: { GET, POST },
1111
} = NextAuth({
12+
trustHost: process.env.PLAYWRIGHT === "true",
1213
adapter: DrizzleAdapter(db),
1314
providers: [
1415
GithubProvider({

0 commit comments

Comments
 (0)