api/[...path}.ts
import { Hono } from "hono";
import type { APIRoute } from "astro";
// ...
export const ALL: APIRoute = () => new Response("Hello World");
error:
Hint:
See https://docs.astro.build/en/guides/routing/#dynamic-routes for more information on dynamic routes.
Alternatively, set `output: "server"` or `output: "hybrid"` in your Astro config file to switch to a non-static server build. This error can also occur if using `export const prerender = true;`.
See https://docs.astro.build/en/guides/server-side-rendering/ for more information on non-static rendering.
Error reference:
https://docs.astro.build/en/reference/errors/get-static-paths-required/
Stack trace:
at A:\new-website\src\pages\api[...path].ts
[...] See full stack trace in the browser, or rerun with --verbose.