Omit the NPM version tag to automatically get the latest

This commit is contained in:
Ryan Wilson 2024-09-24 11:52:13 -04:00
parent 42af80da9c
commit 97d305ddcc
2 changed files with 2 additions and 2 deletions

View file

@ -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, {

View file

@ -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, {