added build steps

This commit is contained in:
2024-09-24 08:33:11 -06:00
parent eb73b7217f
commit 6eaf48609e
6 changed files with 72 additions and 7 deletions

View File

@@ -17,14 +17,16 @@ if (!isServer) {
} else {
const token = process.env.CANVAS_TOKEN;
if (!token) {
throw new Error("CANVAS_TOKEN not in environment");
console.error("CANVAS_TOKEN not in environment")
// throw new Error("CANVAS_TOKEN not in environment");
} else {
axiosClient.interceptors.request.use((config) => {
if (config.url && config.url.startsWith(canvasBaseUrl)) {
config.headers.set("Authorization", `Bearer ${token}`);
}
return config;
});
}
axiosClient.interceptors.request.use((config) => {
if (config.url && config.url.startsWith(canvasBaseUrl)) {
config.headers.set("Authorization", `Bearer ${token}`);
}
return config;
});
}
axiosClient.interceptors.response.use(