• 28-10-2021, 21:27:52
    #1
    Arkadaşlar selam, nextjs ile hazırlanmış one page bir sayfam var. Bu sayfaya multi language eklemek istiyorum.
    domain.com => Türkçe
    domain.com/en => İngilizce gibi.

    https://nextjs.org/docs/advanced-features/i18n-routing bunu denedim fakat aşağıdaki gibi hata alıyorum build alırken

    i18n support is not compatible with next export.

    Yardımcı olabilecek arkadaşlar süre ve fiyat bilgisi verirse sevinirim.
  • 29-10-2021, 01:54:55
    #2
    package.json dosyasında deploy komutunu
    "npm run clean && npm run build && next export -o dist/" olarak değiştirip dener misiniz.
  • 29-10-2021, 13:39:12
    #3
    TOLQA adlı üyeden alıntı: mesajı görüntüle
    package.json dosyasında deploy komutunu
    "npm run clean && npm run build && next export -o dist/" olarak değiştirip dener misiniz.
    > npm run clean && npm run build && next export -o dist/

    npm ERR! Missing script: "clean"
    npm ERR!
    npm ERR! To see a list of scripts, run:
    npm ERR! npm run

    npm ERR! A complete log of this run can be found in:


    olarak hata verdi.
  • 29-10-2021, 14:27:05
    #4
    npm run build && next export -o dist/ şu şekilde dener misiniz.
  • 29-10-2021, 17:30:12
    #5
    TOLQA adlı üyeden alıntı: mesajı görüntüle
    npm run build && next export -o dist/ şu şekilde dener misiniz.

    böylede döngüye girmiş gibi build almaay çalışıyor

    next build && next export -o dist/

    şöyle denedim yine aynı hatayı verdi.
  • 30-10-2021, 23:52:28
    #6
    Mesaj gönderildi