diff --git a/templates/blank/src/payload.config.ts b/templates/blank/src/payload.config.ts index e548d5c53..daae2a2d8 100644 --- a/templates/blank/src/payload.config.ts +++ b/templates/blank/src/payload.config.ts @@ -11,6 +11,7 @@ import Users from './collections/Users' export default buildConfig({ admin: { user: Users.slug, + bundler: webpackBundler(), // bundler-config }, editor: lexicalEditor({}), // editor-config collections: [Users], @@ -26,5 +27,4 @@ export default buildConfig({ url: process.env.DATABASE_URI, }), // database-adapter-config-end - bundler: webpackBundler(), // bundler-config }) diff --git a/templates/ecommerce/src/payload/payload.config.ts b/templates/ecommerce/src/payload/payload.config.ts index e9f3c7302..bb98a3cc8 100644 --- a/templates/ecommerce/src/payload/payload.config.ts +++ b/templates/ecommerce/src/payload/payload.config.ts @@ -34,6 +34,7 @@ const mockModulePath = path.resolve(__dirname, './emptyModuleMock.js') export default buildConfig({ admin: { user: Users.slug, + bundler: webpackBundler(), // bundler-config components: { // The `BeforeLogin` component renders a message that you see while logging into your admin panel. // Feel free to delete this at any time. Simply remove the line below and the import `BeforeLogin` statement on line 15. @@ -74,7 +75,6 @@ export default buildConfig({ url: process.env.DATABASE_URI, }), // database-adapter-config-end - bundler: webpackBundler(), // bundler-config cors: ['https://checkout.stripe.com', process.env.PAYLOAD_PUBLIC_SERVER_URL || ''].filter( Boolean, ), diff --git a/templates/website/src/payload.config.ts b/templates/website/src/payload.config.ts index 1c27b3f2b..a8a891a8b 100644 --- a/templates/website/src/payload.config.ts +++ b/templates/website/src/payload.config.ts @@ -28,6 +28,7 @@ const mockModulePath = path.resolve(__dirname, './emptyModuleMock.js') export default buildConfig({ admin: { user: Users.slug, + bundler: webpackBundler(), // bundler-config components: { // The BeforeDashboard component renders the 'welcome' block that you see after logging into your admin panel. // Feel free to delete this at any time. Simply remove the line below and the import BeforeDashboard statement on line 15. @@ -59,7 +60,6 @@ export default buildConfig({ url: process.env.DATABASE_URI, }), // database-adapter-config-end - bundler: webpackBundler(), // bundler-config ...(process.env.PAYLOAD_PUBLIC_SITE_URL ? { cors: [process.env.PAYLOAD_PUBLIC_SITE_URL].filter(Boolean),