@webiny/project-server-template 6.6.0-alpha.0 → 6.6.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/project-server-template",
3
- "version": "6.6.0-alpha.0",
3
+ "version": "6.6.0-alpha.1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,13 +9,13 @@
9
9
  "description": "A Webiny self-hosted (server) project template.",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@webiny/api-event-handler-server-sql": "6.6.0-alpha.0",
13
- "@webiny/app": "6.6.0-alpha.0",
14
- "@webiny/app-serverless-cms": "6.6.0-alpha.0",
15
- "@webiny/build-tools": "6.6.0-alpha.0",
16
- "@webiny/project": "6.6.0-alpha.0",
17
- "@webiny/project-server": "6.6.0-alpha.0",
18
- "@webiny/project-template-base": "6.6.0-alpha.0",
12
+ "@webiny/api-event-handler-server-sql": "6.6.0-alpha.1",
13
+ "@webiny/app": "6.6.0-alpha.1",
14
+ "@webiny/app-serverless-cms": "6.6.0-alpha.1",
15
+ "@webiny/build-tools": "6.6.0-alpha.1",
16
+ "@webiny/project": "6.6.0-alpha.1",
17
+ "@webiny/project-server": "6.6.0-alpha.1",
18
+ "@webiny/project-template-base": "6.6.0-alpha.1",
19
19
  "react": "18.3.1"
20
20
  },
21
21
  "publishConfig": {
@@ -16,7 +16,7 @@
16
16
  "@webiny/api-websockets": "latest",
17
17
  "@webiny/api-workflows": "latest",
18
18
  "@webiny/build-tools": "latest",
19
- "better-sqlite3": "13.0.1",
19
+ "better-sqlite3": "13.0.3",
20
20
  "knex": "^3.3.0"
21
21
  }
22
22
  }
@@ -1,7 +1,11 @@
1
1
  import React from "react";
2
2
  import { ProjectServer } from "@webiny/project-server/extensions/ProjectServer.js";
3
3
  import { DefaultExtensions } from "@webiny/project-template-base";
4
- import { Extensions as WebinyConfigTsx } from "../../webiny.config.js";
4
+ import { FeatureFlagsGate } from "@webiny/project";
5
+ import * as WebinyConfig from "../../webiny.config.js";
6
+
7
+ const FeatureFlags = "FeatureFlags" in WebinyConfig ? WebinyConfig.FeatureFlags : null;
8
+ const WebinyConfigTsx = WebinyConfig.Extensions;
5
9
 
6
10
  /**
7
11
  * Server hosting-type project composition. Mirrors the AWS hosting type's base config, but renders the
@@ -12,9 +16,12 @@ import { Extensions as WebinyConfigTsx } from "../../webiny.config.js";
12
16
  export const Extensions = () => {
13
17
  return (
14
18
  <>
15
- <ProjectServer />
16
- <DefaultExtensions />
17
- <WebinyConfigTsx />
19
+ {FeatureFlags ? <FeatureFlags /> : null}
20
+ <FeatureFlagsGate skip={!FeatureFlags}>
21
+ <ProjectServer />
22
+ <DefaultExtensions />
23
+ <WebinyConfigTsx />
24
+ </FeatureFlagsGate>
18
25
  </>
19
26
  );
20
27
  };