Skip to content

Commit

Permalink
migrate nextService
Browse files Browse the repository at this point in the history
  • Loading branch information
Joabesv committed Nov 17, 2024
1 parent c608177 commit 0d170dc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 31 deletions.
30 changes: 0 additions & 30 deletions src/services/NextAPI.js

This file was deleted.

15 changes: 15 additions & 0 deletions src/services/next.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { ofetch } from "ofetch";

function resolveEndpoint() {
if (import.meta.env.PROD) {
return 'https://api.v2.ufabcnext.com'
}

return 'http://localhost:5000'
}


export const nextService = ofetch.create({
baseURL: resolveEndpoint(),
})

1 change: 0 additions & 1 deletion src/services/UFSig.ts → src/services/uf-sig.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useFetch } from "@vueuse/core";
import { FetchError, ofetch } from "ofetch";
import { storage } from 'wxt/storage'

Expand Down

0 comments on commit 0d170dc

Please sign in to comment.