#can't get export command to work
29 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
make sure u only export in your page, layout or route handler
in your page.tsx where u want the route to be fully dynamic
So should not use in route.tsx
there is no route.tsx
in the app router u have page.tsx, layout.tsx and route.tsx for route handlers
any other file is a rsc component by default
"use server" for server actions, "use client" for client components
I have a file called route.tsx in api folder getting error over there
ah i see
api folder is in app/ right?
Ya
I want to export to out folder
dynamic features arent supported with static exports
Ya even got that error called prerender error
yes and exporting dynamic will fix your prerender error
but since u exporting u cant do that