mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
hardcode baseurl
This commit is contained in:
parent
56d56b5018
commit
3dee9b21df
@ -30,22 +30,11 @@ const dynamicBaseQuery: BaseQueryFn<
|
|||||||
FetchBaseQueryError
|
FetchBaseQueryError
|
||||||
> = async (args, api, extraOptions) => {
|
> = async (args, api, extraOptions) => {
|
||||||
const baseUrl = $baseUrl.get();
|
const baseUrl = $baseUrl.get();
|
||||||
console.log({ baseUrl })
|
|
||||||
if (baseUrl === undefined) {
|
|
||||||
return {
|
|
||||||
error: {
|
|
||||||
status: 400,
|
|
||||||
statusText: 'Bad Request',
|
|
||||||
data: 'No baseUrl set',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const authToken = $authToken.get();
|
const authToken = $authToken.get();
|
||||||
const projectId = $projectId.get();
|
const projectId = $projectId.get();
|
||||||
|
|
||||||
const rawBaseQuery = fetchBaseQuery({
|
const rawBaseQuery = fetchBaseQuery({
|
||||||
baseUrl: `${baseUrl ?? ''}/api/v1`,
|
baseUrl: `http://localhost:1234/api/v1`,
|
||||||
prepareHeaders: (headers) => {
|
prepareHeaders: (headers) => {
|
||||||
if (authToken) {
|
if (authToken) {
|
||||||
headers.set('Authorization', `Bearer ${authToken}`);
|
headers.set('Authorization', `Bearer ${authToken}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user