1-) React Next Js - React Next.js uygulamasını Windows IIS üzerinde ayağa kaldırma
1. ADIM nextConfig.js bu adımlar yapılır
const nextConfig = { output: "export", reactStrictMode: true, return config; }, };
module.exports = nextConfig;
|
2. ADIM
npm run build && npm run export
|
3. ADIM
|
DİĞER BAKMASANDA OLUR
basePath verirsen /pavo/favoicon.png olur. doğru yolu bulması içindir
const nextConfig = { output: "export", basePath: "/pavo", assetPrefix: "/pavo/", reactStrictMode: true, return config; }, };
module.exports = nextConfig;
|