Karolis Stulgys
05/02/2022, 6:28 AMauth
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.
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?Frank
NextjsSite
construct or u deploy ur Next.js app directly through Amplify?Karolis Stulgys
05/03/2022, 4:41 AMKarolis Stulgys
05/03/2022, 4:41 AMKarolis Stulgys
05/03/2022, 6:31 AMtarget:serverless
in next.config, but maybe it should be target: "experimental-serverless-trace"
?
https://github.com/aws-amplify/amplify-hosting/issues/2427