Skip to content

Commit

Permalink
feat: switch to poi-release repo
Browse files Browse the repository at this point in the history
  • Loading branch information
KagamiChan committed Oct 17, 2024
1 parent 7943a6e commit 155eecf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions specs/dist.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test.describe('dist', () => {
next.onFetch((request) => {
if (
request.url ===
'https://raw.githubusercontent.com/poooi/website/master/packages/data/update/latest.json'
'https://raw.githubusercontent.com/poooi/poi-release/master/latest.json'
) {
return new Response(
JSON.stringify({
Expand Down Expand Up @@ -53,7 +53,7 @@ test.describe('dist', () => {
next.onFetch((request) => {
if (
request.url ===
'https://raw.githubusercontent.com/poooi/website/master/packages/data/update/latest.json'
'https://raw.githubusercontent.com/poooi/poi-release/master/latest.json'
) {
return new Response(
JSON.stringify({
Expand Down Expand Up @@ -82,7 +82,7 @@ test.describe('dist', () => {
next.onFetch((request) => {
if (
request.url ===
'https://raw.githubusercontent.com/poooi/website/master/packages/data/update/latest.json'
'https://raw.githubusercontent.com/poooi/poi-release/master/latest.json'
) {
return new Response(
JSON.stringify({
Expand Down
2 changes: 1 addition & 1 deletion src/app/(api)/update/[filename]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export const GET = async (
notFound()
}
return reverseFetch(
`https://raw.githubusercontent.com/poooi/website/master/packages/data/update/${filename}`,
`https://raw.githubusercontent.com/poooi/poi-release/master/${filename}`,
)
}
2 changes: 1 addition & 1 deletion src/lib/fetch-poi-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export interface PoiVersions {

export const fetchPoiVersions = async (): Promise<PoiVersions> => {
const resp = await fetch(
'https://raw.githubusercontent.com/poooi/website/master/packages/data/update/latest.json',
'https://raw.githubusercontent.com/poooi/poi-release/master/latest.json',
)
return resp.json() as Promise<PoiVersions>
}

0 comments on commit 155eecf

Please sign in to comment.