Skip to content

Commit eb941df

Browse files
committed
Remove build output checks from deployment workflow; clean up console logs and error handling in frontend components
1 parent 0885fc0 commit eb941df

File tree

5 files changed

+5
-38
lines changed

5 files changed

+5
-38
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,6 @@ jobs:
4040
VITE_RECAPTCHA_SECRET_KEY_V3: ${{ secrets.VITE_RECAPTCHA_SECRET_KEY_V3 }}
4141
VITE_AHASEND_APIKEY: ${{ secrets.VITE_AHASEND_APIKEY }}
4242

43-
- name: Check build output
44-
working-directory: src/frontend
45-
run: |
46-
echo "=== Build Output Check ==="
47-
ls -la dist/
48-
echo "=== Index.html Head ==="
49-
head -40 dist/index.html
50-
echo "=== Index.html Tail ==="
51-
tail -10 dist/index.html
52-
echo "=== JavaScript Files ==="
53-
find dist -name "*.js" -type f -exec basename {} \; | head -10
54-
echo "=== Checking main JS content ==="
55-
find dist -name "index-*.js" -type f -exec head -3 {} \;
56-
5743
- name: Deploy to FTP (Frontend)
5844
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
5945
with:

src/frontend/src/App.vue

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
import { onMounted, onErrorCaptured } from "vue"
2+
import { onErrorCaptured } from "vue"
33
import {
44
Preloader,
55
PageBorders,
@@ -9,14 +9,9 @@ import {
99
PageFooter,
1010
} from "./components"
1111
12-
onMounted(() => {
13-
console.log("📱 App.vue mounted successfully!")
14-
})
15-
1612
onErrorCaptured((error, instance, errorInfo) => {
17-
console.error("❌ App Error Captured:", error)
18-
console.error("📍 Error Info:", errorInfo)
19-
return false // Propagate error
13+
console.error("App Error:", error)
14+
return false
2015
})
2116
</script>
2217

src/frontend/src/main.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@ import { pinia, i18n } from "./plugins"
77
import App from "./App.vue"
88
import router from "./router"
99

10-
console.log("🚀 App starting...")
11-
console.log("📍 Base URL:", import.meta.env.BASE_URL)
12-
console.log("🌍 Mode:", import.meta.env.MODE)
13-
console.log("🔗 Router ready:", router)
14-
1510
const app = createApp(App)
1611
app.config.globalProperties.applicationName = "Evren.Dev"
1712
app.use(router).use(pinia).use(i18n).mount("#app")
18-
19-
console.log("✅ App mounted successfully!")

src/frontend/src/router/index.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,8 @@ router.afterEach(to => {
134134
metaKeywordsTag.setAttribute("content", keywords)
135135
})
136136

137-
// Debug ve Error Handling
138-
router.beforeEach((to, from, next) => {
139-
console.log("🧭 Navigating to:", to.path)
140-
console.log("🌐 Locale:", to.params.locale)
141-
next()
142-
})
143-
144137
router.onError(error => {
145-
console.error("Router Error:", error)
138+
console.error("Router Error:", error)
146139
})
147140

148141
export default router

src/frontend/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default defineConfig(({ mode }) => {
7777
minify: "terser",
7878
terserOptions: {
7979
compress: {
80-
drop_console: false, // Console mesajlarını koru!
80+
drop_console: true,
8181
drop_debugger: true,
8282
},
8383
},

0 commit comments

Comments
 (0)