@openeventkit/event-site 2.0.44 → 2.0.45
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/gatsby-node.js +3 -0
- package/package.json +1 -1
package/gatsby-node.js
CHANGED
|
@@ -19,6 +19,7 @@ const {
|
|
|
19
19
|
COLORS_FILE_PATH,
|
|
20
20
|
SITE_SETTINGS_FILE_PATH,
|
|
21
21
|
LOBBY_PAGE_FILE_PATH,
|
|
22
|
+
EXPO_HALL_PAGE_FILE_PATH,
|
|
22
23
|
SUMMIT_FILE_PATH,
|
|
23
24
|
EVENTS_FILE_PATH,
|
|
24
25
|
EVENTS_IDX_FILE_PATH,
|
|
@@ -227,6 +228,7 @@ exports.onPreBootstrap = async () => {
|
|
|
227
228
|
const colorSettings = fs.existsSync(COLORS_FILE_PATH) ? JSON.parse(fs.readFileSync(COLORS_FILE_PATH)) : require(`./${DEFAULT_COLORS_FILE_PATH}`);
|
|
228
229
|
const globalSettings = fs.existsSync(SITE_SETTINGS_FILE_PATH) ? JSON.parse(fs.readFileSync(SITE_SETTINGS_FILE_PATH)) : {};
|
|
229
230
|
const lobbyPageSettings = fs.existsSync(LOBBY_PAGE_FILE_PATH) ? JSON.parse(fs.readFileSync(LOBBY_PAGE_FILE_PATH)) : {};
|
|
231
|
+
const expoHallPageSettings = fs.existsSync(EXPO_HALL_PAGE_FILE_PATH) ? JSON.parse(fs.readFileSync(EXPO_HALL_PAGE_FILE_PATH)) : {};
|
|
230
232
|
|
|
231
233
|
const config = {
|
|
232
234
|
client: {
|
|
@@ -259,6 +261,7 @@ exports.onPreBootstrap = async () => {
|
|
|
259
261
|
fs.writeFileSync(MARKETING_SETTINGS_FILE_PATH, JSON.stringify(marketingSettings), "utf8");
|
|
260
262
|
fs.writeFileSync(COLORS_FILE_PATH, JSON.stringify(colorSettings), "utf8");
|
|
261
263
|
fs.writeFileSync(LOBBY_PAGE_FILE_PATH, JSON.stringify(lobbyPageSettings), "utf8");
|
|
264
|
+
fs.writeFileSync(EXPO_HALL_PAGE_FILE_PATH, JSON.stringify(expoHallPageSettings), "utf8");
|
|
262
265
|
|
|
263
266
|
// summit
|
|
264
267
|
const summit = await SSR_getSummit(summitApiBaseUrl, summitId);
|