mirror of
https://github.com/MarcZierle/photo-log-frontend.git
synced 2025-04-12 07:04:36 +00:00
add .env file and move api urls to .env
This commit is contained in:
parent
b4ac02c0bf
commit
0fb0eb8516
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
dist/
|
dist/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
**/.env
|
@ -48,7 +48,7 @@ export default defineComponent({
|
|||||||
store.dispatch('loadAuth')
|
store.dispatch('loadAuth')
|
||||||
|
|
||||||
console.log("Starting connection to WebSocket Server")
|
console.log("Starting connection to WebSocket Server")
|
||||||
this.connection = new WebSocket("wss://zierle-training.riezel.com/ws/notifications/")
|
this.connection = new WebSocket(import.meta.env.VITE_WEBSOCKET_URL)
|
||||||
|
|
||||||
this.connection.onmessage = function(event) {
|
this.connection.onmessage = function(event) {
|
||||||
console.log(event);
|
console.log(event);
|
||||||
|
@ -4,7 +4,7 @@ import createAuthRefreshInterceptor from 'axios-auth-refresh';
|
|||||||
import store from '../store'
|
import store from '../store'
|
||||||
|
|
||||||
const apiClient = axios.create({
|
const apiClient = axios.create({
|
||||||
baseURL: 'https://zierle-training.riezel.com/api/v1',
|
baseURL: import.meta.env.VITE_API_URL,
|
||||||
withCredentials: false,
|
withCredentials: false,
|
||||||
timeout: 10000,
|
timeout: 10000,
|
||||||
headers: {
|
headers: {
|
||||||
|
Loading…
Reference in New Issue
Block a user