Skip to content

Commit

Permalink
fix:env
Browse files Browse the repository at this point in the history
  • Loading branch information
jundm committed Apr 19, 2022
1 parent 3824275 commit 09f64dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/.env.production
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PRODUCTION_ENV_VARIABLE="server_only_production_variable"
NEXT_PUBLIC_PRODUCTION_ENV_VARIABLE="public_production_variable"

HOSTNAME=13.209.33.37
HOSTNAME=sef.today
PORT=9000
NEXT_PUBLIC_ENV_BASE_URL=https://$HOSTNAME:$PORT/
NEXT_PUBLIC_ENV_BASE_URL=http://$HOSTNAME:$PORT/
2 changes: 1 addition & 1 deletion frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = (phase, { defaultConfig }) => {
const env = {
RESTURL_BACKEND: (() => {
if (isDev) return "http://localhost:9000/";
if (isProd) return "http://13.209.33.37:9000/";
if (isProd) return "http://sef.today:9000/";
if (isStaging) return "http://localhost:11639/";
return "RESTURL_BACKEND:not (isDev,isProd && !isStaging,isProd && isStaging)";
})(),
Expand Down
2 changes: 1 addition & 1 deletion frontend/utils/Cookies/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"HTTP_ONLY": false
},
"production": {
"BACKEND_URL": "http://13.209.33.37:9000/",
"BACKEND_URL": "http://sef.today:9000/",
"HTTP_ONLY": true
}
}

1 comment on commit 09f64dd

@vercel
Copy link

@vercel vercel bot commented on 09f64dd Apr 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.