From dcd4eb6caaa91f3daa5164fe6e2b2cf34c6b218d Mon Sep 17 00:00:00 2001 From: Guryash Date: Tue, 10 Dec 2024 23:14:40 +1300 Subject: [PATCH] feat: update domain --- api/index.ts | 2 +- strapi/config/middlewares.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/index.ts b/api/index.ts index c5f2fb38..416bff43 100644 --- a/api/index.ts +++ b/api/index.ts @@ -37,7 +37,7 @@ supertokens.init({ }, appInfo: { appName: "AUIS", - apiDomain: "http://localhost:3000", + apiDomain: `${process.env.DOMAIN_API}`, websiteDomain: `${process.env.DOMAIN_FRONTEND}`, apiBasePath: "/api/auth", websiteBasePath: "/signup", diff --git a/strapi/config/middlewares.js b/strapi/config/middlewares.js index a506cd57..ee682a75 100644 --- a/strapi/config/middlewares.js +++ b/strapi/config/middlewares.js @@ -7,6 +7,7 @@ module.exports = [ "http://localhost:3000", "http://localhost:1337", "http://localhost:3567", + "https://wdcc-auis-staging.fly.dev/" ], // Your frontend domain headers: [ "Content-Type",