chore(templates): move bundler under admin
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user