Skip to content

Commit 1e16dac

Browse files
committed
update urls
1 parent c4d00f5 commit 1e16dac

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

backend/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,5 @@ router.ws('/realtime', async (req, res) => {
124124
});
125125

126126
app.listen(port, () => {
127-
console.log(`Example app listening on port ${port}`)
127+
console.log(`lookatme-api app listening on port ${port}`)
128128
})

frontend/src/components/Home.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const partnerBearing = ref<number>(0);
3939
const backgroundClasses = ref<string>();
4040
const roomId = ref<string>();
4141
42-
const { status, data, send, open } = useWebSocket('wss://lookatme.earth/realtime', {
42+
const { status, data, send, open } = useWebSocket('wss://api.lookatme.earth/realtime', {
4343
immediate: false,
4444
});
4545
@@ -87,7 +87,7 @@ const obtainRoughLocation = async () => {
8787
}
8888
8989
const obtainDeclination = async (): Promise<number> => {
90-
const { data } = await axios.get(`/api/declination`, {
90+
const { data } = await axios.get(`https://api.lookatme.earth/declination`, {
9191
params: {
9292
latitude: roughLocation.value?.latitude,
9393
longitude: roughLocation.value?.longitude,

frontend/vite.config.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ export default defineConfig({
2020
// },
2121
proxy: {
2222
// HTTP API proxy
23-
'/api': {
24-
// target: 'http://10.0.0.124:3000',
25-
target: 'https://api.lookatme.earth',
26-
changeOrigin: true,
27-
secure: false,
28-
rewrite: (path) => path.replace(/^\/api/, ''),
29-
},
23+
// '/api': {
24+
// // target: 'http://10.0.0.124:3000',
25+
// target: 'https://api.lookatme.earth',
26+
// changeOrigin: true,
27+
// secure: false,
28+
// rewrite: (path) => path.replace(/^\/api/, ''),
29+
// },
3030
// WebSocket proxy
31-
'/realtime': {
32-
// target: 'ws://10.0.0.124:3000',
33-
target: 'ws://lookatme.earth',
34-
ws: true,
35-
changeOrigin: true,
36-
secure: false,
37-
}
31+
// '/realtime': {
32+
// // target: 'ws://10.0.0.124:3000',
33+
// target: 'ws://lookatme.earth',
34+
// ws: true,
35+
// changeOrigin: true,
36+
// secure: false,
37+
// }
3838
}
3939
}
4040
})

0 commit comments

Comments
 (0)