chore(templates): move bundler under admin

This commit is contained in:
Elliot DeNolf
2023-10-06 14:01:19 -04:00
parent 6afdaefdcd
commit 06fe3f4ac8
3 changed files with 3 additions and 3 deletions

View File

@@ -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
})

View File

@@ -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,
),

View File

@@ -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),