Fixed env problem
This commit is contained in:
@@ -34,6 +34,7 @@ import apiClient from './apiClient.js';
|
||||
export default {
|
||||
name: 'App',
|
||||
data() {
|
||||
console.log(import.meta.env);
|
||||
return {
|
||||
selectedClub: null,
|
||||
};
|
||||
|
||||
@@ -24,7 +24,8 @@ export default {
|
||||
...mapActions(['login']),
|
||||
async executeLogin() {
|
||||
try {
|
||||
const response = await axios.post(`${process.env.VITE_BACKEND}/api/auth/login`, { email: this.email, password: this.password }, {
|
||||
console.log(import.meta.env.VITE_BACKEND);
|
||||
const response = await axios.post(`${import.meta.env.VITE_BACKEND}/api/auth/login`, { email: this.email, password: this.password }, {
|
||||
timeout: 5000,
|
||||
});
|
||||
await this.login({ token: response.data.token, username: this.email });
|
||||
|
||||
Reference in New Issue
Block a user