Omit the NPM version tag to automatically get the latest
This commit is contained in:
parent
42af80da9c
commit
97d305ddcc
2 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ export async function GET(_req: NextRequest, { params }: { params: { aero: strin
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
try {
|
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 file = await res.text()
|
||||||
const fileBlob = new Blob([file])
|
const fileBlob = new Blob([file])
|
||||||
return new Response(fileBlob, {
|
return new Response(fileBlob, {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { NextRequest } from 'next/server'
|
||||||
export async function GET(_req: NextRequest, { params }: { params: { aeroSandbox: string } }) {
|
export async function GET(_req: NextRequest, { params }: { params: { aeroSandbox: string } }) {
|
||||||
const requestedFile = params.aeroSandbox
|
const requestedFile = params.aeroSandbox
|
||||||
try {
|
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 file = await res.text()
|
||||||
const fileBlob = new Blob([file])
|
const fileBlob = new Blob([file])
|
||||||
return new Response(fileBlob, {
|
return new Response(fileBlob, {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue