feat: add dockeriz project
This commit is contained in:
@@ -8,7 +8,8 @@ const useAxios = () => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
const instance = axios.create({
|
||||
baseURL: "https://api.persain-game.com/api/v1",
|
||||
baseURL:
|
||||
import.meta.env.VITE_API_URL ?? "https://api.persain-game.com/api/v1",
|
||||
maxBodyLength: Infinity,
|
||||
...(sessionStorage.getItem("shop_id") && {
|
||||
headers: {
|
||||
|
||||
8
src/vite-env.d.ts
vendored
8
src/vite-env.d.ts
vendored
@@ -1 +1,9 @@
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_API_URL?: string;
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user