UNPKG

@duongtrungnguyen/next-helper

Version:
45 lines 1.82 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var configs_exports = {}; __export(configs_exports, { libConfig: () => libConfig }); module.exports = __toCommonJS(configs_exports); const libConfig = { baseUrl: process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:3001", tokenType: process.env.NEXT_PUBLIC_AUTH_TOKEN_TYPE || "Bearer", auth: { globalPrefix: process.env.NEXT_PUBLIC_AUTH_GLOBAL_PREFIX || "/auth", endpoints: { login: process.env.NEXT_PUBLIC_LOGIN_ENDPOINT || "/sign-in", logout: process.env.NEXT_PUBLIC_LOGOUT_ENDPOINT || "/sign-out", refresh: process.env.NEXT_PUBLIC_REFRESH_TOKEN_PREFIX || "/refresh", user: process.env.NEXT_PUBLIC_USER_ENDPOINT || "/user" }, cookies: { accessToken: process.env.NEXT_PUBLIC_ACCESS_TOKEN_PREFIX || "auth.access-token", refreshToken: process.env.NEXT_PUBLIC_REFRESH_TOKEN_PREFIX || "auth.refresh-token" } } }; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { libConfig }); //# sourceMappingURL=configs.js.map