Fixes CORS error

This commit is contained in:
Mihovil Ilakovac 2024-10-28 16:38:32 +01:00
parent 08304fecc9
commit a5097629c3
24 changed files with 37 additions and 37 deletions

View File

@ -59,8 +59,8 @@ const resolvedConfig: Config = merge(config.all, config[nodeEnv])
export default resolvedConfig
function getDevelopmentConfig(): EnvConfig {
const frontendUrl = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL) ?? '{= defaultClientUrl =}';
const serverUrl = stripTrailingSlash(process.env.WASP_SERVER_URL) ?? '{= defaultServerUrl =}';
const frontendUrl = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL ?? '{= defaultClientUrl =}');
const serverUrl = stripTrailingSlash(process.env.WASP_SERVER_URL ?? '{= defaultServerUrl =}');
return {
// @ts-ignore
frontendUrl,

View File

@ -242,7 +242,7 @@
"file",
"../out/sdk/wasp/server/config.ts"
],
"caae4cf8c442998ef1f07b099a93e5c680c92a55d8f1556912948ce85dccecd8"
"5dd35660e0969defaa3c180179919f4922ab7bc041746872dff7f2280c1872ae"
],
[
[

View File

@ -18,8 +18,8 @@ const resolvedConfig = merge(config.all, config[nodeEnv]);
export default resolvedConfig;
function getDevelopmentConfig() {
var _a, _b;
const frontendUrl = (_a = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL)) !== null && _a !== void 0 ? _a : 'http://localhost:3000/';
const serverUrl = (_b = stripTrailingSlash(process.env.WASP_SERVER_URL)) !== null && _b !== void 0 ? _b : 'http://localhost:3001';
const frontendUrl = stripTrailingSlash((_a = process.env.WASP_WEB_CLIENT_URL) !== null && _a !== void 0 ? _a : 'http://localhost:3000/');
const serverUrl = stripTrailingSlash((_b = process.env.WASP_SERVER_URL) !== null && _b !== void 0 ? _b : 'http://localhost:3001');
return {
// @ts-ignore
frontendUrl,

View File

@ -1 +1 @@
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../server/config.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,cAAc,CAAA;AAEhC,OAAO,EAAE,kBAAkB,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mBAAmB,CAAC,CAAC;IACxE,MAAM,SAAS,GAAG,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IAClE,OAAO;QACL,aAAa;QACb,WAAW;QACX,aAAa;QACb,SAAS;QACT,aAAa;QACb,kBAAkB,EAAE,CAAC,WAAW,CAAC;KAClC,CAAA;AACH,CAAC"}

View File

@ -48,8 +48,8 @@ const resolvedConfig: Config = merge(config.all, config[nodeEnv])
export default resolvedConfig
function getDevelopmentConfig(): EnvConfig {
const frontendUrl = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL) ?? 'http://localhost:3000/';
const serverUrl = stripTrailingSlash(process.env.WASP_SERVER_URL) ?? 'http://localhost:3001';
const frontendUrl = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL ?? 'http://localhost:3000/');
const serverUrl = stripTrailingSlash(process.env.WASP_SERVER_URL ?? 'http://localhost:3001');
return {
// @ts-ignore
frontendUrl,

View File

@ -18,8 +18,8 @@ const resolvedConfig = merge(config.all, config[nodeEnv]);
export default resolvedConfig;
function getDevelopmentConfig() {
var _a, _b;
const frontendUrl = (_a = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL)) !== null && _a !== void 0 ? _a : 'http://localhost:3000/';
const serverUrl = (_b = stripTrailingSlash(process.env.WASP_SERVER_URL)) !== null && _b !== void 0 ? _b : 'http://localhost:3001';
const frontendUrl = stripTrailingSlash((_a = process.env.WASP_WEB_CLIENT_URL) !== null && _a !== void 0 ? _a : 'http://localhost:3000/');
const serverUrl = stripTrailingSlash((_b = process.env.WASP_SERVER_URL) !== null && _b !== void 0 ? _b : 'http://localhost:3001');
return {
// @ts-ignore
frontendUrl,

View File

@ -1 +1 @@
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../server/config.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,cAAc,CAAA;AAEhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,OAAO,GA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AkB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IAClE,OAAO;QACL,aAAa;QACb,WAAW;QACX,aAAa;QACb,SAAS;QACT,aAAa;QACb,kBAAkB,EAAE,CAAC,WAAW,CAAC;KAClC,CAAA;AACH,CAAC"}

View File

@ -48,8 +48,8 @@ const resolvedConfig: Config = merge(config.all, config[nodeEnv])
export default resolvedConfig
function getDevelopmentConfig(): EnvConfig {
const frontendUrl = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL) ?? 'http://localhost:3000/';
const serverUrl = stripTrailingSlash(process.env.WASP_SERVER_URL) ?? 'http://localhost:3001';
const frontendUrl = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL ?? 'http://localhost:3000/');
const serverUrl = stripTrailingSlash(process.env.WASP_SERVER_URL ?? 'http://localhost:3001');
return {
// @ts-ignore
frontendUrl,

View File

@ -242,7 +242,7 @@
"file",
"../out/sdk/wasp/server/config.ts"
],
"caae4cf8c442998ef1f07b099a93e5c680c92a55d8f1556912948ce85dccecd8"
"5dd35660e0969defaa3c180179919f4922ab7bc041746872dff7f2280c1872ae"
],
[
[

View File

@ -18,8 +18,8 @@ const resolvedConfig = merge(config.all, config[nodeEnv]);
export default resolvedConfig;
function getDevelopmentConfig() {
var _a, _b;
const frontendUrl = (_a = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL)) !== null && _a !== void 0 ? _a : 'http://localhost:3000/';
const serverUrl = (_b = stripTrailingSlash(process.env.WASP_SERVER_URL)) !== null && _b !== void 0 ? _b : 'http://localhost:3001';
const frontendUrl = stripTrailingSlash((_a = process.env.WASP_WEB_CLIENT_URL) !== null && _a !== void 0 ? _a : 'http://localhost:3000/');
const serverUrl = stripTrailingSlash((_b = process.env.WASP_SERVER_URL) !== null && _b !== void 0 ? _b : 'http://localhost:3001');
return {
// @ts-ignore
frontendUrl,

View File

@ -1 +1 @@
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../server/config.ts"],"names":[],"mappings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B;IAC1B,MAAM,WAAW,GAAG,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IACxE,MAAM,SAAS,GAAG,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IAClE,OAAO;QACL,aAAa;QACb,WAAW;QACX,aAAa;QACb,SAAS;QACT,aAAa;QACb,kBAAkB,EAAE,CAAC,WAAW,CAAC;KAClC,CAAA;AACH,CAAC"}

View File

@ -48,8 +48,8 @@ const resolvedConfig: Config = merge(config.all, config[nodeEnv])
export default resolvedConfig
function getDevelopmentConfig(): EnvConfig {
const frontendUrl = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL) ?? 'http://localhost:3000/';
const serverUrl = stripTrailingSlash(process.env.WASP_SERVER_URL) ?? 'http://localhost:3001';
const frontendUrl = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL ?? 'http://localhost:3000/');
const serverUrl = stripTrailingSlash(process.env.WASP_SERVER_URL ?? 'http://localhost:3001');
return {
// @ts-ignore
frontendUrl,

View File

@ -599,7 +599,7 @@
"file",
"../out/sdk/wasp/server/config.ts"
],
"81c07491672473d70e3f5d107ab119ac2672d87836387484708943e2285c2590"
"7222022fceced6be8ce57e8fd06ea6dfe2100de5984d7a9bc752ed4d9ba6f4ef"
],
[
[

View File

@ -21,8 +21,8 @@ const resolvedConfig = merge(config.all, config[nodeEnv]);
export default resolvedConfig;
function getDevelopmentConfig() {
var _a, _b;
const frontendUrl = (_a = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL)) !== null && _a !== void 0 ? _a : 'http://localhost:3000/';
const serverUrl = (_b = stripTrailingSlash(process.env.WASP_SERVER_URL)) !== null && _b !== void 0 ? _b : 'http://localhost:3001';
const frontendUrl = stripTrailingSlash((_a = process.env.WASP_WEB_CLIENT_URL) !== null && _a !== void 0 ? _a : 'http://localhost:3000/');
const serverUrl = stripTrailingSlash((_b = process.env.WASP_SERVER_URL) !== null && _b !== void 0 ? _b : 'http://localhost:3001');
return {
// @ts-ignore
frontendUrl,

View File

@ -1 +1 @@
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../server/config.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,cAAc,CAAA;AAEhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,QAAQ,mCAAI,aAAa,CAAA;AA4BrD,MAAM,MAAM,GAIR;IACF,GAAG,EAAE;QACH,GAAG,EAAE,OAAO;QACZ,aAAa,EAAE,OAAO,KAAK,aAAa;QACxC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI;QAC1D,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY;QACrC,kBAAkB,EAAE,EAAE;QACtB,IAAI,EAAE;YACJ,SAAS,EAAE,SAAS;SACrB;KACF;IACD,WAAW,EAAE,oBAAoB,EAAE;IACnC,UAAU,EAAE,mBAAmB,EAAE;CAClC,CAAA;AAED,MAAM,cAAc,GAAW,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAA;AACjE,aAAa;AACb,eAAe,cAAc,CAAA;AAE7B,SAAS,oBAAoB;;IAC3B,MAAM,WAAW,GAAG,MAAA,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,mCAAK,wBAAwB,CAAC;IACrG,MAAM,SAAS,GAAG,MAAA,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,mCAAI,uBAAuB,CAAC;IAC7F,OAAO;QACL,aAAa;QACb,WAAW;QACX,aAAa;QACb,SAAS;QACT,kBAAkB,EAAE,GAAG;QACvB,IAAI,EAAE;YACJ,SAAS,EAAE,cAAc;SAC1B;KAC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IAC3B,MAAM,WAAW,GAAG,kBAAkB,CAAC,MAAA,OAAO,CAAC,GAAG,CAAC,mBAAmB,mCAAI,wBAAwB,CAAC,CAAC;IACpG,MAAM,SAAS,GAAG,kBAAkB,CAAC,MAAA,OAAO,CAAC,GAAG,CAAC,eAAe,mCAAI,uBAAuB,CAAC,CAAC;IAC7F,OAAO;QACL,aAAa;QACb,WAAW;QACX,aAAa;QACb,SAAS;QACT,kBAAkB,EAAE,GAAG;QACvB,IAAI,EAAE;YACJ,SAAS,EAAE,cAAc;SAC1B;KACF,CAAA;AACH,CAAC;AAED,SAAS,mBAAmB;IAC1B,MAAM,WAAW,GAAG,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IACxE,MAAM,SAAS,GAAG,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IAClE,OAAO;QACL,aAAa;QACb,WAAW;QACX,aAAa;QACb,SAAS;QACT,aAAa;QACb,kBAAkB,EAAE,CAAC,WAAW,CAAC;QACjC,IAAI,EAAE;YACJ,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;SAClC;KACF,CAAA;AACH,CAAC"}

View File

@ -54,8 +54,8 @@ const resolvedConfig: Config = merge(config.all, config[nodeEnv])
export default resolvedConfig
function getDevelopmentConfig(): EnvConfig {
const frontendUrl = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL) ?? 'http://localhost:3000/';
const serverUrl = stripTrailingSlash(process.env.WASP_SERVER_URL) ?? 'http://localhost:3001';
const frontendUrl = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL ?? 'http://localhost:3000/');
const serverUrl = stripTrailingSlash(process.env.WASP_SERVER_URL ?? 'http://localhost:3001');
return {
// @ts-ignore
frontendUrl,

View File

@ -249,7 +249,7 @@
"file",
"../out/sdk/wasp/server/config.ts"
],
"caae4cf8c442998ef1f07b099a93e5c680c92a55d8f1556912948ce85dccecd8"
"5dd35660e0969defaa3c180179919f4922ab7bc041746872dff7f2280c1872ae"
],
[
[

View File

@ -18,8 +18,8 @@ const resolvedConfig = merge(config.all, config[nodeEnv]);
export default resolvedConfig;
function getDevelopmentConfig() {
var _a, _b;
const frontendUrl = (_a = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL)) !== null && _a !== void 0 ? _a : 'http://localhost:3000/';
const serverUrl = (_b = stripTrailingSlash(process.env.WASP_SERVER_URL)) !== null && _b !== void 0 ? _b : 'http://localhost:3001';
const frontendUrl = stripTrailingSlash((_a = process.env.WASP_WEB_CLIENT_URL) !== null && _a !== void 0 ? _a : 'http://localhost:3000/');
const serverUrl = stripTrailingSlash((_b = process.env.WASP_SERVER_URL) !== null && _b !== void 0 ? _b : 'http://localhost:3001');
return {
// @ts-ignore
frontendUrl,

View File

@ -1 +1 @@
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../server/config.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,cAAc,CAAA;AAEhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,QAAQ,mCAAI,aAAa,CAAA;AAyBrD,MAAM,MAAM,GAIR;IACF,GAAG,EAAE;QACH,GAAG,EAAE,OAAO;QACZ,aAAa,EAAE,OAAO,KAAK,aAAa;QACxC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI;QAC1D,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY;QACrC,kBAAkB,EAAE,EAAE;KACvB;IACD,WAAW,EAAE,oBAAoB,EAAE;IACnC,UAAU,EAAE,mBAAmB,EAAE;CAClC,CAAA;AAED,MAAM,cAAc,GAAW,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAA;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ACvB;IACD,WAAW,EAAE,oBAAoB,EAAE;IACnC,UAAU,EAAE,mBAAmB,EAAE;CAClC,CAAA;AAED,MAAM,cAAc,GAAW,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAA;AACjE,aAAa;AACb,eAAe,cAAc,CAAA;AAE7B,SAAS,oBAAoB;;IAC3B,MAAM,WAAW,GAAG,kBAAkB,CAAC,MAAA,OAAO,CAAC,GAAG,CAAC,mBAAmB,mCAAI,wBAAwB,CAAC,CAAC;IACpG,MAAM,SAAS,GAAG,kBAAkB,CAAC,MAAA,OAAO,CAAC,GAAG,CAAC,eAAe,mCAAI,uBAAuB,CAAC,CAAC;IAC7F,OAAO;QACL,aAAa;QACb,WAAW;QACX,aAAa;QACb,SAAS;QACT,kBAAkB,EAAE,GAAG;KACxB,CAAA;AACH,CAAC;AAED,SAAS,mBAAmB;IAC1B,MAAM,WAAW,GAAG,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IACxE,MAAM,SAAS,GAAG,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IAClE,OAAO;QACL,aAAa;QACb,WAAW;QACX,aAAa;QACb,SAAS;QACT,aAAa;QACb,kBAAkB,EAAE,CAAC,WAAW,CAAC;KAClC,CAAA;AACH,CAAC"}

View File

@ -48,8 +48,8 @@ const resolvedConfig: Config = merge(config.all, config[nodeEnv])
export default resolvedConfig
function getDevelopmentConfig(): EnvConfig {
const frontendUrl = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL) ?? 'http://localhost:3000/';
const serverUrl = stripTrailingSlash(process.env.WASP_SERVER_URL) ?? 'http://localhost:3001';
const frontendUrl = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL ?? 'http://localhost:3000/');
const serverUrl = stripTrailingSlash(process.env.WASP_SERVER_URL ?? 'http://localhost:3001');
return {
// @ts-ignore
frontendUrl,

View File

@ -242,7 +242,7 @@
"file",
"../out/sdk/wasp/server/config.ts"
],
"caae4cf8c442998ef1f07b099a93e5c680c92a55d8f1556912948ce85dccecd8"
"5dd35660e0969defaa3c180179919f4922ab7bc041746872dff7f2280c1872ae"
],
[
[

View File

@ -18,8 +18,8 @@ const resolvedConfig = merge(config.all, config[nodeEnv]);
export default resolvedConfig;
function getDevelopmentConfig() {
var _a, _b;
const frontendUrl = (_a = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL)) !== null && _a !== void 0 ? _a : 'http://localhost:3000/';
const serverUrl = (_b = stripTrailingSlash(process.env.WASP_SERVER_URL)) !== null && _b !== void 0 ? _b : 'http://localhost:3001';
const frontendUrl = stripTrailingSlash((_a = process.env.WASP_WEB_CLIENT_URL) !== null && _a !== void 0 ? _a : 'http://localhost:3000/');
const serverUrl = stripTrailingSlash((_b = process.env.WASP_SERVER_URL) !== null && _b !== void 0 ? _b : 'http://localhost:3001');
return {
// @ts-ignore
frontendUrl,

View File

@ -1 +1 @@
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../server/config.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,cAAc,CAAA;AAEhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,QAAQ,mCAAI,aAAa,CAAA;AAyBrD,MAAM,MAAM,GAIR;IACF,GAAG,EAAE;QACH,GAAG,EAAE,OAAO;QACZ,aAAa,EAAE,OAAO,KAAK,aAAa;QACxC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI;QAC1D,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY;QACrC,kBAAkB,EAAE,EAAE;KACvB;IACD,WAAW,EAAE,oBAAoB,EAAE;IACnC,UAAU,EAAE,mBAAmB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,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI;QAC1D,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY;QACrC,kBAAkB,EAAE,EAAE;KACvB;IACD,WAAW,EAAE,oBAAoB,EAAE;IACnC,UAAU,EAAE,mBAAmB,EAAE;CAClC,CAAA;AAED,MAAM,cAAc,GAAW,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAA;AACjE,aAAa;AACb,eAAe,cAAc,CAAA;AAE7B,SAAS,oBAAoB;;IAC3B,MAAM,WAAW,GAAG,kBAAkB,CAAC,MAAA,OAAO,CAAC,GAAG,CAAC,mBAAmB,mCAAI,wBAAwB,CAAC,CAAC;IACpG,MAAM,SAAS,GAAG,kBAAkB,CAAC,MAAA,OAAO,CAAC,GAAG,CAAC,eAAe,mCAAI,uBAAuB,CAAC,CAAC;IAC7F,OAAO;QACL,aAAa;QACb,WAAW;QACX,aAAa;QACb,SAAS;QACT,kBAAkB,EAAE,GAAG;KACxB,CAAA;AACH,CAAC;AAED,SAAS,mBAAmB;IAC1B,MAAM,WAAW,GAAG,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IACxE,MAAM,SAAS,GAAG,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IAClE,OAAO;QACL,aAAa;QACb,WAAW;QACX,aAAa;QACb,SAAS;QACT,aAAa;QACb,kBAAkB,EAAE,CAAC,WAAW,CAAC;KAClC,CAAA;AACH,CAAC"}

View File

@ -48,8 +48,8 @@ const resolvedConfig: Config = merge(config.all, config[nodeEnv])
export default resolvedConfig
function getDevelopmentConfig(): EnvConfig {
const frontendUrl = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL) ?? 'http://localhost:3000/';
const serverUrl = stripTrailingSlash(process.env.WASP_SERVER_URL) ?? 'http://localhost:3001';
const frontendUrl = stripTrailingSlash(process.env.WASP_WEB_CLIENT_URL ?? 'http://localhost:3000/');
const serverUrl = stripTrailingSlash(process.env.WASP_SERVER_URL ?? 'http://localhost:3001');
return {
// @ts-ignore
frontendUrl,