|
@@ -1,4 +1,5 @@
|
|
|
/* eslint-disable no-console */
|
|
/* eslint-disable no-console */
|
|
|
|
|
+import { AdminUiPlugin } from '@vendure/admin-ui-plugin';
|
|
|
import { AssetServerPlugin } from '@vendure/asset-server-plugin';
|
|
import { AssetServerPlugin } from '@vendure/asset-server-plugin';
|
|
|
import { ADMIN_API_PATH, API_PORT, SHOP_API_PATH } from '@vendure/common/lib/shared-constants';
|
|
import { ADMIN_API_PATH, API_PORT, SHOP_API_PATH } from '@vendure/common/lib/shared-constants';
|
|
|
import {
|
|
import {
|
|
@@ -140,30 +141,31 @@ export const devConfig: VendureConfig = {
|
|
|
},
|
|
},
|
|
|
}),
|
|
}),
|
|
|
...(IS_INSTRUMENTED ? [TelemetryPlugin.init({})] : []),
|
|
...(IS_INSTRUMENTED ? [TelemetryPlugin.init({})] : []),
|
|
|
- // AdminUiPlugin.init({
|
|
|
|
|
- // route: 'admin',
|
|
|
|
|
- // port: 5001,
|
|
|
|
|
- // adminUiConfig: {},
|
|
|
|
|
- // // Un-comment to compile a custom admin ui
|
|
|
|
|
- // // app: compileUiExtensions({
|
|
|
|
|
- // // outputPath: path.join(__dirname, './custom-admin-ui'),
|
|
|
|
|
- // // extensions: [
|
|
|
|
|
- // // {
|
|
|
|
|
- // // id: 'ui-extensions-library',
|
|
|
|
|
- // // extensionPath: path.join(__dirname, 'example-plugins/ui-extensions-library/ui'),
|
|
|
|
|
- // // routes: [{ route: 'ui-library', filePath: 'routes.ts' }],
|
|
|
|
|
- // // providers: ['providers.ts'],
|
|
|
|
|
- // // },
|
|
|
|
|
- // // {
|
|
|
|
|
- // // globalStyles: path.join(
|
|
|
|
|
- // // __dirname,
|
|
|
|
|
- // // 'test-plugins/with-ui-extension/ui/custom-theme.scss',
|
|
|
|
|
- // // ),
|
|
|
|
|
- // // },
|
|
|
|
|
- // // ],
|
|
|
|
|
- // // devMode: true,
|
|
|
|
|
- // // }),
|
|
|
|
|
- // }),
|
|
|
|
|
|
|
+ AdminUiPlugin.init({
|
|
|
|
|
+ route: 'admin',
|
|
|
|
|
+ port: 5001,
|
|
|
|
|
+ compatibilityMode: true,
|
|
|
|
|
+ adminUiConfig: {},
|
|
|
|
|
+ // Un-comment to compile a custom admin ui
|
|
|
|
|
+ // app: compileUiExtensions({
|
|
|
|
|
+ // outputPath: path.join(__dirname, './custom-admin-ui'),
|
|
|
|
|
+ // extensions: [
|
|
|
|
|
+ // {
|
|
|
|
|
+ // id: 'ui-extensions-library',
|
|
|
|
|
+ // extensionPath: path.join(__dirname, 'example-plugins/ui-extensions-library/ui'),
|
|
|
|
|
+ // routes: [{ route: 'ui-library', filePath: 'routes.ts' }],
|
|
|
|
|
+ // providers: ['providers.ts'],
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // globalStyles: path.join(
|
|
|
|
|
+ // __dirname,
|
|
|
|
|
+ // 'test-plugins/with-ui-extension/ui/custom-theme.scss',
|
|
|
|
|
+ // ),
|
|
|
|
|
+ // },
|
|
|
|
|
+ // ],
|
|
|
|
|
+ // devMode: true,
|
|
|
|
|
+ // }),
|
|
|
|
|
+ }),
|
|
|
DashboardPlugin.init({
|
|
DashboardPlugin.init({
|
|
|
route: 'dashboard',
|
|
route: 'dashboard',
|
|
|
appDir: path.join(__dirname, './dist'),
|
|
appDir: path.join(__dirname, './dist'),
|