Change for vite

This commit is contained in:
Torsten Schulz
2024-09-04 11:39:29 +02:00
parent b857a1199a
commit b8a1f7f728
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ import axios from 'axios';
import store from './store';
const apiClient = axios.create({
baseURL: `${process.env.BACKEND}/api`,
baseURL: `${process.env.VITE_BACKEND}/api`,
});
apiClient.interceptors.request.use(config => {

View File

@@ -24,7 +24,7 @@ export default {
...mapActions(['login']),
async executeLogin() {
try {
const response = await axios.post(`${process.env.VUE_APP_BACKEND}/api/auth/login`, { email: this.email, password: this.password }, {
const response = await axios.post(`${process.env.VITE_BACKEND}/api/auth/login`, { email: this.email, password: this.password }, {
timeout: 5000,
});
await this.login({ token: response.data.token, username: this.email });