fix: Voorbereiding production
This commit is contained in:
		
							parent
							
								
									6a6eed8978
								
							
						
					
					
						commit
						fc5ba93ba0
					
				
					 13 changed files with 293 additions and 257 deletions
				
			
		|  | @ -31,6 +31,6 @@ COPY config/nginx/nginx.conf /etc/nginx/nginx.conf | |||
| COPY --from=build-stage /app/assets /usr/share/nginx/html/assets | ||||
| COPY --from=build-stage /app/frontend/dist /usr/share/nginx/html | ||||
| 
 | ||||
| EXPOSE 80 | ||||
| EXPOSE 8080 | ||||
| 
 | ||||
| CMD ["nginx", "-g", "daemon off;"] | ||||
|  |  | |||
|  | @ -1,5 +1,5 @@ | |||
| export const apiConfig = { | ||||
|     baseUrl: window.location.hostname == "localhost" ? "http://localhost:3000" : window.location.origin, | ||||
|     baseUrl: (window.location.hostname === "localhost" && !(window.location.port === '80' || window.location.port === '')) ? "http://localhost:3000/api" : window.location.origin + "/api", | ||||
| }; | ||||
| 
 | ||||
| export const loginRoute = "/login"; | ||||
|  |  | |||
		Reference in a new issue