Next.js tutorial outdated and slightly broken
complete
C
Chad Glendenin
It doesn't seem like it's necessary to use define a custom "export" command in package.json or to use a _static/ directory. It seems like the App Platform is smart enough to work with the default Next.js behaviors.
Also, it's unclear if the static vs. dynamic configurations in the tutorial are actually working. It seems like the app is running with dynamic rendering either way.
The screenshots do not match what I'm seeing in my dashboard in 2023.
The last issue I encountered is that the app refuses to start because of missing image-optimization configuration. I had to add the following to my
next.config.js
file: images: {
unoptimized: true
}
John Mulhausen
complete
Hi Chad,
We have taken down this tutorial and are now recommending the sample app for Next.js for developers new to App Platform. Thanks for reaching out!
https://docs.digitalocean.com/products/app-platform/getting-started/sample-apps/next.js/