updated ssl certs to only be enabled on pro/cloud versions for cockroach

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6529
GitOrigin-RevId: 7281a213b382c5801fc4583cfdf178102b676470
This commit is contained in:
Erik Magnusson 2022-10-27 16:42:40 +02:00 committed by hasura-bot
parent bdf1aee641
commit 2029e20d0c

View File

@ -65,6 +65,7 @@ import {
generateDeleteRowRequest,
generateBulkDeleteRowRequest,
} from './utils';
import globals from '../../../Globals';
import { SupportedFeaturesType } from '../../types';
import {
postgres,
@ -79,7 +80,10 @@ export const supportedFeatures: DeepRequired<SupportedFeaturesType> = {
enabled: false,
namingConvention: false,
extensions_schema: false,
ssl_certificates: true,
ssl_certificates:
globals.consoleType === 'cloud' ||
globals.consoleType === 'pro' ||
globals.consoleType === 'pro-lite',
},
driver: {
name: 'cockroach',