Open abernier opened 1 month ago
@abernier Thank you for submitting an issue!
Can you try this on the latest canary? I'm actually getting a different error
⨯ Error: export const dynamic = "force-static"/export const revalidate not configured on route "/icon" with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export
Since you're using output: export
, you need to make sure this Route Handler is using static instead.
Link to the code that reproduces this issue
https://github.com/abernier/bug-next-icontsx.git
To Reproduce
Current vs. Expected behavior
build is ok though:
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure, Metadata, Output (export/standalone)
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response