#can't get export command to work

29 messages · Page 1 of 1 (latest)

delicate cloud
#

Trying this from morning cant get it to work, tried changing
dynamic = "force-dynamic" to auto but still get other error like prerender error

nimble galleonBOT
#

🔎 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)

cold willow
#

in your page.tsx where u want the route to be fully dynamic

delicate cloud
#

So should not use in route.tsx

cold willow
#

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

delicate cloud
#

I have a file called route.tsx in api folder getting error over there

cold willow
#

api folder is in app/ right?

delicate cloud
#

Ya

cold willow
#

can u show me a screenshot

#

of your build output

delicate cloud
cold willow
#

ah i see

#

remove "output: "export" from your next config

delicate cloud
#

I want to export to out folder

cold willow
delicate cloud
#

Ya even got that error called prerender error

cold willow
#

yes and exporting dynamic will fix your prerender error

#

but since u exporting u cant do that

delicate cloud
#

Is there any way around

#

To get things done

cold willow
#

uhm

#

nope