Omit the NPM version tag to automatically get the latest
This commit is contained in:
@@ -14,7 +14,7 @@ export async function GET(_req: NextRequest, { params }: { params: { aero: strin
|
||||
})
|
||||
} else {
|
||||
try {
|
||||
const res = await fetch(`https://unpkg.com/browse/aero-proxy@0.0.3/dist/${requestedFile}`)
|
||||
const res = await fetch(`https://unpkg.com/browse/aero-proxy/dist/${requestedFile}`)
|
||||
const file = await res.text()
|
||||
const fileBlob = new Blob([file])
|
||||
return new Response(fileBlob, {
|
||||
|
||||
@@ -4,7 +4,7 @@ import { NextRequest } from 'next/server'
|
||||
export async function GET(_req: NextRequest, { params }: { params: { aeroSandbox: string } }) {
|
||||
const requestedFile = params.aeroSandbox
|
||||
try {
|
||||
const res = await fetch(`https://unpkg.com/browse/aero-sandbox@0.0.3/dist/${requestedFile}`)
|
||||
const res = await fetch(`https://unpkg.com/browse/aero-sandbox/dist/${requestedFile}`)
|
||||
const file = await res.text()
|
||||
const fileBlob = new Blob([file])
|
||||
return new Response(fileBlob, {
|
||||
|
||||
Reference in New Issue
Block a user