| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- {{#if isTs }}import{{ else }}const{{/if}} {
- fakePalPaymentHandler,
- gripePaymentHandler,
- defaultEmailTypes,
- HandlebarsMjmlGenerator,
- {{#if isTs}}VendureConfig,{{/if}}
- } {{#if isTs}}from 'vendure'; {{ else }}= require('vendure');{{/if}}
- {{#if isTs }}
- import * as path from 'path';
- {{ else }}
- const path = require('path');
- {{/if}}
- {{#if isTs}}export {{/if}}const config{{#if isTs}}: VendureConfig{{/if}} = {
- defaultChannelToken: 'default-channel',
- authOptions: {
- sessionSecret: '{{ sessionSecret }}',
- },
- port: 3000,
- apiPath: 'api',
- dbConnectionOptions: {
- type: '{{ dbType }}',
- synchronize: true, // turn this off for production
- logging: false,
- database: '{{ dbName }}',
- {{#if isSQLite}}
- {{else}}
- host: '{{ dbHost }}',
- port: {{ dbPort }},
- username: '{{ dbUserName }}',
- password: '{{ dbPassword }}',
- {{/if}}
- },
- paymentOptions: {
- paymentMethodHandlers: [fakePalPaymentHandler, gripePaymentHandler],
- },
- customFields: {},
- emailOptions: {
- emailTypes: defaultEmailTypes,
- generator: new HandlebarsMjmlGenerator(path.join(__dirname, 'vendure', 'email', 'templates', 'partials')),
- transport: {
- type: 'file',
- outputPath: path.join(__dirname, 'vendure', 'email', 'test-emails'),
- },
- },
- importExportOptions: {
- importAssetsDir: path.join(__dirname, 'vendure', 'import-assets'),
- },
- plugins: [],
- };
- {{#if isTs}}
- {{else}}
- module.exports = { config };
- {{/if}}
|