We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
> bunx --bun astro dev
1.1.30
aarch64
> bun create astro ... let it create the astro stack
> bun create astro
> bunx astro add vercel ... add this for SSR adapter
> bunx astro add vercel
create test endpoint in /src/pages/[...slug].ts
/src/pages/[...slug].ts
import type { APIRoute } from "astro" export const GET: APIRoute = (ctx) => { const { slug } = ctx.params; return new Response( JSON.stringify({ greeting: 'Hello', slug }), ) }
> bunx astro dev ... visit http://localhost:4321/slug/slug shows page with JSON > bunx --bun astro dev ... visit http://localhost:4321/slug/slug triggers download (headers content-type: application/octet-stream)
> bunx astro dev
content-type: application/octet-stream
> bunx astro dev and > bunx --bun astro dev both should show page
> bunx --bun astro dev shows headers as content-type: application/octet-stream triggering a page download
{ "name": "test-endpoint", "type": "module", "version": "0.0.1", "scripts": { "dev": "astro dev", "start": "astro dev", "build": "astro check && astro build", "preview": "astro preview", "astro": "astro" }, "dependencies": { "@astrojs/check": "^0.9.3", "@astrojs/vercel": "^7.8.1", "astro": "^4.15.9", "typescript": "^5.6.2" } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of Bun is running?
1.1.30
What platform is your computer?
aarch64
What steps can reproduce the bug?
> bun create astro
... let it create the astro stack> bunx astro add vercel
... add this for SSR adaptercreate test endpoint in
/src/pages/[...slug].ts
> bunx astro dev
... visit http://localhost:4321/slug/slug shows page with JSON> bunx --bun astro dev
... visit http://localhost:4321/slug/slug triggers download (headerscontent-type: application/octet-stream
)What is the expected behavior?
> bunx astro dev
and> bunx --bun astro dev
both should show pageWhat do you see instead?
> bunx --bun astro dev
shows headers ascontent-type: application/octet-stream
triggering a page downloadAdditional information
The text was updated successfully, but these errors were encountered: