The Node.js® Website
1'use strict';
2
3/**
4 * This is used for Node.js Calendar and any other Google Calendar that we might want to load within the Website
5 *
6 * Note that this is a custom Environment Variable that can be defined by us when necessary
7 */
8export const BASE_CALENDAR_URL =
9 process.env.NEXT_PUBLIC_CALENDAR_URL ||
10 `https://clients6.google.com/calendar/v3/calendars/`;
11
12/**
13 * This is a shared (public) Google Calendar Key (accessible on the Web) for accessing Google's Public Calendar API
14 *
15 * This is a PUBLIC available API Key and not a Secret; It's exposed by Google on their Calendar API Docs
16 *
17 * Note that this is a custom Environment Variable that can be defined by us when necessary
18 */
19export const SHARED_CALENDAR_KEY =
20 process.env.NEXT_PUBLIC_SHARED_CALENDAR_KEY ||
21 'AIzaSyBNlYH01_9Hc5S1J9vuFmu2nUqBZJNAXxs';
22
23/**
24 * This is Node.js's Public Google Calendar ID used for all public entries from Node.js Calendar
25 */
26export const CALENDAR_NODEJS_ID =
27 'nodejs.org_nr77ama8p7d7f9ajrpnu506c98@group.calendar.google.com';
28
29/**
30 * Default Date format for Calendars and Time Components
31 *
32 * @type {import('next-intl').DateTimeFormatOptions}
33 */
34export const DEFAULT_DATE_FORMAT = {
35 year: 'numeric',
36 month: 'short',
37 day: '2-digit',
38};