Skip to content

Commit 46e47cf

Browse files
committed
fix: env working
1 parent 73cdfc6 commit 46e47cf

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import StoreProvider from "@/store";
22
import React from "react";
33
import { Flip, ToastContainer } from "react-toastify";
44
import "../../public/fontawesome/css/all.min.css";
5-
import Wrapper from "@/components/Wrapper";
5+
import Wrapper from "@/components/wrapper";
66
import "./page.scss";
77
import "react-toastify/dist/ReactToastify.css";
88

File renamed without changes.

src/utils/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const requestAPI = <T>(method: Method, route: string, body?: { [key: string]: un
88
return new Promise<AxiosResponse<T>>((resolve, reject) => {
99
axios
1010
.request<T>({
11-
baseURL: process.env.NEXT_PUBLIC_API_URI, //TODO env
11+
baseURL: process.env.NEXT_PUBLIC_API_URI,
1212
method,
1313
headers: {
1414
Authorization: token ? `Bearer ${token}` : undefined,

src/utils/socket.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let socket: ClientSocket | undefined = undefined;
1010
export const Socket = {
1111
connect: () => async (dispatch: Dispatch) => {
1212
if (!socket) {
13-
socket = io(process.env.NEXT_PUBLIC_API_URI); //TODO env
13+
socket = io(process.env.NEXT_PUBLIC_API_URI);
1414

1515
socket.on('connect', () => dispatch(setSocketConnected()));
1616

0 commit comments

Comments
 (0)