Static Site Deployment
Unanswered
Turkish Angora posted this in #help-forum
Turkish AngoraOP
I'm preparing to deploy my Next.js app using Azure storage. I didn't need a backend, but decided to go with Next.js for the routing. I have my config output set to 'export', and if I serve it's fine.. but if I just open the .html files from the /out dir, it doesn't work.
2 Replies
Turkish AngoraOP
const nextConfig = {
output: "export",
images: {
unoptimized: true,
},
distDir: "out",
trailingSlash: true,
assetPrefix: ".",
staticPageGenerationTimeout: 1000,
reactStrictMode: false,
};
This will allow the site to work, but images and paths wont route correctly. /index.html will work, but if I navigate to any other paths it will output a blank file.
American black bear
@Turkish Angora
Why don't you using the azure app service?
Are the any need of using app storage?
Why don't you using the azure app service?
Are the any need of using app storage?