Skip to content

Commit ddd23cf

Browse files
authored
update next.config (#201)
1 parent 43a7fcc commit ddd23cf

File tree

6 files changed

+15
-25
lines changed

6 files changed

+15
-25
lines changed

.github/workflows/e2e.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ permissions:
1717
contents: read # This is required for actions/checkout
1818

1919
jobs:
20+
# Checks the latest Nextjs Version, if it's not been tested before, it will
21+
# Continue to the next job where it does the actual Playwright tests
2022
check_next_version:
2123
runs-on: ubuntu-latest
2224

@@ -59,9 +61,11 @@ jobs:
5961
previousNextVersion: ${{ steps.get_latest_version.outputs.LATEST_VERSION }}
6062
cacheKey: ${{ steps.cache-previous.outputs.cache-primary-key }}
6163

64+
# If the event is push (merged and pushed into main) or if
65+
# the latest Nextjs version hasn't been tested, run the Playwright tests
6266
e2e:
6367
needs: check_next_version
64-
if: needs.check_next_version.outputs.skip != 'true'
68+
if: github.event_name == 'push' || needs.check_next_version.outputs.skip != 'true'
6569
runs-on: ubuntu-latest
6670
steps:
6771

@@ -115,9 +119,9 @@ jobs:
115119
restore-keys: |
116120
${{ runner.os }}-turbo-
117121
118-
# Build all the packages
122+
# Build only the open-next package + its monorepo dependencies
119123
- name: Build
120-
run: pnpm run build
124+
run: pnpm --filter open-next... run build
121125

122126
# Deploy e2e stage
123127
- name: Deploy NextjsSite

examples/app-pages-router/next.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
poweredByHeader: false,
4-
output: "standalone",
54
transpilePackages: ["@example/shared"],
6-
outputFileTracing: "../sst",
75
experimental: {
86
serverActions: true,
97
},

examples/app-router/next.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
poweredByHeader: false,
4-
output: "standalone",
54
transpilePackages: ["@example/shared"],
6-
outputFileTracing: "../sst",
75
experimental: {
86
serverActions: true,
97
},

examples/pages-router/next.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
const nextConfig = {
33
transpilePackages: ["@example/shared"],
44
reactStrictMode: true,
5-
output: "standalone",
6-
outputFileTracing: "../sst",
75
};
86

97
module.exports = nextConfig;

examples/pages-router/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"clean": "rm -rf .turbo node_modules .next .open-next"
1212
},
1313
"dependencies": {
14-
"@next/font": "13.4.16",
1514
"@example/shared": "workspace:*",
1615
"@types/node": "20.5.0",
1716
"@types/react": "18.2.20",

pnpm-lock.yaml

Lines changed: 8 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)