Skip to content

Commit

Permalink
chore(dev-server): Add cookie secret to config
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Jun 23, 2021
1 parent 39b3937 commit 424819c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/dev-server/dev-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
import { AdminUiPlugin } from '@vendure/admin-ui-plugin';
import { AssetServerPlugin } from '@vendure/asset-server-plugin';
import { ADMIN_API_PATH, API_PORT, SHOP_API_PATH } from '@vendure/common/lib/shared-constants';
import { DefaultJobQueuePlugin, DefaultLogger, DefaultSearchPlugin, dummyPaymentHandler, LogLevel, VendureConfig, } from '@vendure/core';
import {
DefaultJobQueuePlugin,
DefaultLogger,
DefaultSearchPlugin,
dummyPaymentHandler,
LogLevel,
VendureConfig,
} from '@vendure/core';
import { defaultEmailHandlers, EmailPlugin } from '@vendure/email-plugin';
import path from 'path';
import { ConnectionOptions } from 'typeorm';
Expand Down Expand Up @@ -33,6 +40,9 @@ export const devConfig: VendureConfig = {
tokenMethod: 'cookie',
requireVerification: true,
customPermissions: [],
cookieOptions: {
secret: 'abc',
},
},
dbConnectionOptions: {
synchronize: false,
Expand All @@ -44,7 +54,7 @@ export const devConfig: VendureConfig = {
paymentMethodHandlers: [dummyPaymentHandler],
},
customFields: {},
logger: new DefaultLogger({level: LogLevel.Info}),
logger: new DefaultLogger({ level: LogLevel.Info }),
importExportOptions: {
importAssetsDir: path.join(__dirname, 'import-assets'),
},
Expand Down

0 comments on commit 424819c

Please sign in to comment.