nextjs-plesk-fix v1.0.0
nextjs-plesk-fix
A CLI tool to automatically fix Next.js deployment issues on Plesk servers.
Installation
npm install -g nextjs-plesk-fixUsage
Navigate to your Next.js project directory and run:
nextjs-plesk-fixThis will automatically modify the /node_modules/.bin/next file to resolve common deployment issues on Plesk servers.
What it does
This tool makes the following changes to the /node_modules/.bin/next file:
- Sets
isDefault: falsefor the "dev" command. - Sets
isDefault: truefor the "start" command.
These changes help to ensure that your Next.js application starts correctly when deployed on a Plesk server.
Note
Remember to run this tool after each npm install or when pulling new changes, as these actions might overwrite the modifications.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License.
Kurulum
npm install -g nextjs-plesk-fixKullanım
Next.js proje dizininize gidin ve şu komutu çalıştırın:
nextjs-plesk-fixBu, Plesk sunucularında yaygın dağıtım sorunlarını çözmek için /node_modules/.bin/next dosyasını otomatik olarak değiştirecektir.
Ne yapar
Bu araç, /node_modules/.bin/next dosyasında aşağıdaki değişiklikleri yapar:
- "dev" komutu için
isDefault: falseolarak ayarlar. - "start" komutu için
isDefault: trueolarak ayarlar.
Bu değişiklikler, Next.js uygulamanızın Plesk sunucusunda doğru şekilde başlatılmasını sağlar.
Not
Her npm install işleminden sonra veya yeni değişiklikleri çekerken bu aracı çalıştırmayı unutmayın, çünkü bu işlemler yapılan değişikliklerin üzerine yazabilir.
Katkıda Bulunma
Katkılarınızı bekliyoruz! Lütfen bir Pull Request göndermekten çekinmeyin.
Lisans
Bu proje MIT Lisansı altında lisanslanmıştır.
1 year ago