File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed
Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1- FROM golang:1.23 -alpine3.19 AS builder
2- RUN mkdir /app
1+ FROM golang:1.24 -alpine3.20 AS builder
2+
33WORKDIR /app
4+
45ENV CGO_ENABLED=1
6+
57RUN apk update && apk add --no-cache docker-cli gcc musl-dev
6- RUN go install github.com/air-verse/air@latest
7- ENTRYPOINT [ "air" ,"dev" ]
8+
9+ # Spesifik ve stabil air versiyonu kurulumu
10+ RUN go install github.com/air-verse/air@v1.62.0
11+
12+ ENTRYPOINT ["air" , "dev" ]
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ services:
88 - 8080:8080
99 volumes :
1010 - ../backend:/app
11- - /var/run/docker.sock:/var/run/docker.sock # Docker.sock ekleniyor
11+ - /var/run/docker.sock:/var/run/docker.sock
1212 networks :
1313 - codinlab
1414
@@ -38,4 +38,4 @@ services:
3838
3939networks :
4040 codinlab :
41- driver : bridge
41+ driver : bridge
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ const AuthProvider = ({ children }) => {
4343 }
4444 ws . current = new WebSocket ( "ws://localhost/api/v1/private/socket/ws" ) ;
4545
46- ws . current . onopen = ( ) => { } ;
46+ ws . current . onopen = ( ) => { } ;
4747
4848 ws . current . onmessage = ( e ) => {
4949 const data = JSON . parse ( e . data ) ;
@@ -144,6 +144,10 @@ const AuthProvider = ({ children }) => {
144144 } ;
145145
146146 const initAuth = ( ) => {
147+ if ( [ "/login" , "/register" ] . includes ( router . pathname ) ) {
148+ return ;
149+ }
150+
147151 setLoading ( true ) ;
148152 setIsInitialized ( false ) ;
149153
You can’t perform that action at this time.
0 commit comments