Hi :wave: I try todo `auth` as as in the guide but...
# help
k
Hi 👋 I try todo
auth
as as in the guide but with
nextjs
and I get an issue when I use Amplify on the frontend and try to deploy the stack.
Copy code
Error: Command failed with exit code 1: ./node_modules/.bin/next build
warn  - The `target` config is deprecated and will be removed in a future version.
See more info here <https://nextjs.org/docs/messages/deprecated-target-config>
warn  - Compiled with warnings
• I use all the latest packages in my package.json • I have ssr:true in Amplify config • It builds fine if I run build locally for the frontend • It deploys fine if I remove Amplify config from the frontend I understand this might not be related to sst but maybe someone had this issue and somehow resolved?
f
@Karolis Stulgys are you using the
NextjsSite
construct or u deploy ur Next.js app directly through Amplify?
k
I use nextjs construct and follow the tutorial
@Frank
When sst builds it I see it makes
target:serverless
in next.config, but maybe it should be
target: "experimental-serverless-trace"
? https://github.com/aws-amplify/amplify-hosting/issues/2427