Commit 74a3d948 authored by 熊洋洋's avatar 熊洋洋

fix: fix deploy

parent 2ddc20aa
...@@ -9,7 +9,7 @@ export const backendApi = axios.create({ ...@@ -9,7 +9,7 @@ export const backendApi = axios.create({
}); });
(() => { (() => {
if (!sessionStorage.getItem("baseURL")) { if (globalThis.sessionStorage && !sessionStorage.getItem("baseURL")) {
const url = process.env.NEXT_PUBLIC_BACKEND_URL || 'http://localhost:3001' const url = process.env.NEXT_PUBLIC_BACKEND_URL || 'http://localhost:3001'
axios.get((url) + "/schema/all").then( axios.get((url) + "/schema/all").then(
() => { () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment