Skip to content

Commit

Permalink
feat:bofore deploy backup
Browse files Browse the repository at this point in the history
  • Loading branch information
jundm committed Apr 14, 2022
1 parent 57acc4f commit 4554e8c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion frontend/.env.development
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
DEVELOPMENT_ENV_VARIABLE="server_only_development_variable"
NEXT_PUBLIC_DEVELOPMENT_ENV_VARIABLE="public_development_variable"

HOSTNAME=localhost
# HOSTNAME=localhost
PORT=9000
HOSTNAME=localhost
NEXT_PUBLIC_ENV_BASE_URL=http://$HOSTNAME:$PORT/
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=MY_BACKEND_SERVER
PORT=80
HOSTNAME=13.209.33.37
PORT=9000
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://localhost:9000/";
if (isProd) return "http://13.209.33.37: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://localhost:9000/",
"BACKEND_URL": "http://13.209.33.37:9000/",
"HTTP_ONLY": true
}
}
1 change: 1 addition & 0 deletions frontend/utils/Hook/useFetch.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { useState } from "react";
import { setVerifyToken } from "@utils/Cookies/TokenManager";
import axios from "axios";
import useSWR from "swr";
Expand Down

0 comments on commit 4554e8c

Please sign in to comment.