fix(basepath): add basepath
This commit is contained in:
@@ -79,7 +79,7 @@ async function httpfetch<T>(options: OptionsProps): Promise<T> {
|
||||
}
|
||||
const pathList = options.url.split("/")
|
||||
const request = new Request(
|
||||
`/api/${options.isFormData ? "transferFormData" : "transfer"}/${pathList[pathList.length - 1]}`,
|
||||
`${process.env.NEXT_PUBLIC_BASE_PATH}/api/${options.isFormData ? "transferFormData" : "transfer"}/${pathList[pathList.length - 1]}`,
|
||||
myInit
|
||||
)
|
||||
return request
|
||||
|
||||
Reference in New Issue
Block a user