Skip to content

Commit

Permalink
Added deployment links
Browse files Browse the repository at this point in the history
  • Loading branch information
slashexx committed Nov 4, 2024
1 parent 4fa96c1 commit dd37f1e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/api-gateway/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type CodeRequest struct {
}

func enableCors(w http.ResponseWriter) {
w.Header().Set("Access-Control-Allow-Origin", "http://localhost:5173")
w.Header().Set("Access-Control-Allow-Origin", "http://codebrewery.vercel.app")
w.Header().Set("Access-Control-Allow-Methods", "POST, OPTIONS")
w.Header().Set("Access-Control-Allow-Headers", "Content-Type")
}
Expand Down
2 changes: 1 addition & 1 deletion backend/code-execution-service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func executeCode(language string, code string) (string, error) {
}

func enableCors(w http.ResponseWriter) {
w.Header().Set("Access-Control-Allow-Origin", "http://localhost:8080")
w.Header().Set("Access-Control-Allow-Origin", "https://codebrewery-api-gateway.onrender.com")
w.Header().Set("Access-Control-Allow-Methods", "POST, OPTIONS")
w.Header().Set("Access-Control-Allow-Headers", "Content-Type")
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function App() {
setOutput(`Running ${LANGUAGE_CONFIGS[selectedLanguage].label} code...\n`);

try {
const response = await fetch("http://localhost:8080/execute", {
const response = await fetch("https://codebrewery-api-gateway.onrender.com/execute", {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down

0 comments on commit dd37f1e

Please sign in to comment.