* feat: split atoms endpoints and add public event type endpoint * Update ConnectedDestinationCalendars import path across platform/atoms components * refactor: update BookingResponse import path from platform-libraries to features/bookings * Move AvailableSlotsType to util.ts and update imports to use GetAvailableSlotsResponse * Refactor import path for RecurringBookingCreateBody type from libraries to types * Fix import path for getBookingForReschedule type from platform-libraries to features * Refactor PublicEventType export location and update import references * Remove @calcom/platform-libraries dependency from atoms package.json * chore(deps): update yarn.lock dependencies * Remove console.log statements and fix indentation in event type hooks * Migrate event type transformers from platform/libraries to api/v2 directory * Remove console.log * Update BookerPlatformWrapper.tsx * Add script to populate empty team slugs with slugified team names * Remove vitest imports * reset platform libraries version * Remove unused orgId comment from useAtomGetPublicEvent hook params * Update useApiV2AvailableSlots.ts * refactor: remove unused exports from lib package index file * Undo: @SomayChauhan Add script to populate empty team slugs with slugified team names * Update booking.tsx * chore: upgrade @calcom/platform-libraries from 0.0.202 to 0.0.205 * chore: bump @calcom/platform-libraries from 0.0.205 to 0.0.206 * chore: configure babel and jest for node module transpilation in api v2 * fix: type errors * Revert "chore: configure babel and jest for node module transpilation in api v2" This reverts commit b2cf172a84fe8953f9497bf6e43874f476fbc04b. * Update calendars.service.ts * chore: bump @calcom/platform-libraries from 0.0.208 to 0.0.209 * fix: add proper type definition for calendar busy times to resolve ts-expect-error * refactor: deprecate v2 old availability endpoints (#21075) Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com> * chore: publish platform librareis * feat: add delegation credential fields to calendar service mock * chore: update @calcom/platform-libraries from 0.0.211 to 0.0.213 * fix: skip failing calendar integration test * chore: bump @calcom/platform-libraries from 0.0.213 to 0.0.214 * fix: api/v2 build error * fix: e2e tests --------- Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com> Co-authored-by: supalarry <laurisskraucis@gmail.com> Co-authored-by: Lauris Skraucis <lauris.skraucis@gmail.com>
39 lines
1.5 KiB
TypeScript
39 lines
1.5 KiB
TypeScript
import type { Environment } from "@/env";
|
|
import "dotenv/config";
|
|
|
|
const env: Partial<Omit<Environment, "NODE_ENV">> = {
|
|
API_URL: "http://localhost",
|
|
API_PORT: "5555",
|
|
DATABASE_URL: "postgresql://postgres:@localhost:5450/calendso",
|
|
DATABASE_READ_URL: "postgresql://postgres:@localhost:5450/calendso",
|
|
DATABASE_WRITE_URL: "postgresql://postgres:@localhost:5450/calendso",
|
|
NEXTAUTH_SECRET: "XF+Hws3A5g2eyWA5uGYYVJ74X+wrCWJ8oWo6kAfU6O8=",
|
|
JWT_SECRET: "XF+Hws3A5g2eyWA5uGYYVJ74X+wrCWJ8oWo6kAfU6O8=",
|
|
LOG_LEVEL: "trace",
|
|
REDIS_URL: "redis://localhost:6379",
|
|
STRIPE_API_KEY: "sk_test_51J4",
|
|
STRIPE_WEBHOOK_SECRET: "whsec_51J4",
|
|
IS_E2E: "true",
|
|
API_KEY_PREFIX: "cal_test_",
|
|
GET_LICENSE_KEY_URL: " https://console.cal.com/api/license",
|
|
CALCOM_LICENSE_KEY: "c4234812-12ab-42s6-a1e3-55bedd4a5bb7",
|
|
RATE_LIMIT_DEFAULT_TTL_MS: 60000,
|
|
// note(Lauris): setting high limit so that e2e tests themselves are not rate limited
|
|
RATE_LIMIT_DEFAULT_LIMIT: 10000,
|
|
RATE_LIMIT_DEFAULT_BLOCK_DURATION_MS: 60000,
|
|
IS_TEAM_BILLING_ENABLED: false,
|
|
};
|
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
// @ts-ignore
|
|
process.env = {
|
|
...env,
|
|
...process.env,
|
|
// fake keys for testing
|
|
NEXT_PUBLIC_VAPID_PUBLIC_KEY:
|
|
"BIds0AQJ96xGBjTSMHTOqLBLutQE7Lu32KKdgSdy7A2cS4mKI2cgb3iGkhDJa5Siy-stezyuPm8qpbhmNxdNHMw",
|
|
VAPID_PRIVATE_KEY: "6cJtkASCar5sZWguIAW7OjvyixpBw9p8zL8WDDwk9Jk",
|
|
CALENDSO_ENCRYPTION_KEY: "22gfxhWUlcKliUeXcu8xNah2+HP/29ZX",
|
|
INTEGRATION_TEST_MODE: "true",
|
|
};
|