diff --git a/apps/Backend/.env.example b/apps/Backend/.env.example index 27c4f396..0a4e46ed 100755 --- a/apps/Backend/.env.example +++ b/apps/Backend/.env.example @@ -1,6 +1,7 @@ NODE_ENV="development" HOST=0.0.0.0 PORT=5000 +CLOUDFLARE_HOST= FRONTEND_URLS=http://localhost:3000 SELENIUM_AGENT_BASE_URL=http://localhost:5002 JWT_SECRET = 'dentalsecret' diff --git a/apps/Frontend/.env.example b/apps/Frontend/.env.example index ff0b463a..3fbaad94 100755 --- a/apps/Frontend/.env.example +++ b/apps/Frontend/.env.example @@ -1,4 +1,5 @@ NODE_ENV=development HOST=0.0.0.0 PORT=3000 -VITE_API_BASE_URL_BACKEND= \ No newline at end of file +VITE_API_BASE_URL_BACKEND= +VITE_CLOUDFLARE_HOST= \ No newline at end of file diff --git a/apps/Frontend/vite.config.ts b/apps/Frontend/vite.config.ts index 9b3fb200..74ac4ca8 100755 --- a/apps/Frontend/vite.config.ts +++ b/apps/Frontend/vite.config.ts @@ -13,7 +13,10 @@ export default defineConfig(({ mode }) => { fs: { allow: [".."], }, - allowedHosts: ["communitydentistsoflowell.mydentalofficemanagement.com"], + allowedHosts: [ + ...(env.VITE_CLOUDFLARE_HOST ? [env.VITE_CLOUDFLARE_HOST] : []), + "192.168.0.94", + ], proxy: { "/api": { target: env.VITE_API_BASE_URL_BACKEND || "http://localhost:5000",