Skip to content

Commit

Permalink
update next.config (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
khuezy authored Aug 31, 2023
1 parent 43a7fcc commit ddd23cf
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 25 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ permissions:
contents: read # This is required for actions/checkout

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

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

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

Expand Down Expand Up @@ -115,9 +119,9 @@ jobs:
restore-keys: |
${{ runner.os }}-turbo-
# Build all the packages
# Build only the open-next package + its monorepo dependencies
- name: Build
run: pnpm run build
run: pnpm --filter open-next... run build

# Deploy e2e stage
- name: Deploy NextjsSite
Expand Down
2 changes: 0 additions & 2 deletions examples/app-pages-router/next.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
poweredByHeader: false,
output: "standalone",
transpilePackages: ["@example/shared"],
outputFileTracing: "../sst",
experimental: {
serverActions: true,
},
Expand Down
2 changes: 0 additions & 2 deletions examples/app-router/next.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
poweredByHeader: false,
output: "standalone",
transpilePackages: ["@example/shared"],
outputFileTracing: "../sst",
experimental: {
serverActions: true,
},
Expand Down
2 changes: 0 additions & 2 deletions examples/pages-router/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
const nextConfig = {
transpilePackages: ["@example/shared"],
reactStrictMode: true,
output: "standalone",
outputFileTracing: "../sst",
};

module.exports = nextConfig;
1 change: 0 additions & 1 deletion examples/pages-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"clean": "rm -rf .turbo node_modules .next .open-next"
},
"dependencies": {
"@next/font": "13.4.16",
"@example/shared": "workspace:*",
"@types/node": "20.5.0",
"@types/react": "18.2.20",
Expand Down
23 changes: 8 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ddd23cf

Please sign in to comment.