Skip to content

Commit

Permalink
chore(next.config): ScottAgirs: remove deprecated appDir flag (#8824)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Cousens <413395+dcousens@users.noreply.github.com>
  • Loading branch information
ScottAgirs and dcousens authored Sep 25, 2023
1 parent 52337e3 commit 712ebb4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/strong-swans-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-6/core': patch
---

Removed deprecated `experimental.appDir` flag from generated next.config
2 changes: 0 additions & 2 deletions examples/framework-nextjs-app-directory/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import withPreconstruct from '@preconstruct/next';

export default withPreconstruct({
experimental: {
appDir: true,

// without this, 'Error: Expected Upload to be a GraphQL nullable type.'
serverComponentsExternalPackages: ['graphql'],
},
Expand Down
3 changes: 0 additions & 3 deletions packages/core/src/admin-ui/templates/next-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ export const nextConfigTemplate = (basePath?: string) =>
eslint: {
ignoreDuringBuilds: true,
},
experimental: {
appDir: false,
},
// We use transpilePackages for the custom admin-ui pages in the ./admin folder
// as they import ts files into nextjs
transpilePackages: ['../../admin'],
Expand Down

0 comments on commit 712ebb4

Please sign in to comment.