Cara Update/Upgrade Astro ke Versi Terbaru 2.0

mrfdn.com – Saya memiliki proyek situs web tempat saya menggunakan AstroJS sebagai backend.

Lalu beberapa waktu lalu Astro sudah mempunyai versi terbarunya yaitu Astro versi 2.0.

Ada beberapa perubahan dimana saya harus beradaptasi lagi dengan fitur baru Astro 2.0.

Sebelumnya proyek saya berjalan di Astro versi 1.9.2. Saat artikel ini ditulis, Astro sudah berada di versi 2.0.11

Cukup gunakan perintah untuk mengupgrade ke versi Astro terbaru npm i astro@latest.

Jika terjadi error, ulangi perintah diatas dengan menambahkan --force Pada akhirnya lalu masuk.

Namun setelah proses upgrade selesai dan berjalan lancar, biasanya Astro Local Server tidak berjalan.

Karena jika Anda memeriksa file tersebut paket.jsonRupanya saya menambahkan fitur seperti tailwind css dan purgecss.

Kedua paket ini harus dalam versi terbaru, karena jika tidak, Server Lokal Astrojs tidak akan berjalan karena ketergantungan yang tidak kompatibel.

Jadi untuk mengupgrade Tailwind dan Purgecss, buka dulu file package.json lalu copy nama paketnya lalu paste di terminal dengan terakhir ditambahkan setelahnya.

Seperti ini:

npm install astrojs/tailwind@latest

npm install astro-purgecss@latest

Jadi setelah proses update selesai, kita bisa menjalankan Astroz versi 2.0 dengan perintah npm run dev.

Demikian catatan singkat ini, semoga bermanfaat di kemudian hari.

PakarPBN

A Private Blog Network (PBN) is a collection of websites that are controlled by a single individual or organization and used primarily to build backlinks to a “money site” in order to influence its ranking in search engines such as Google. The core idea behind a PBN is based on the importance of backlinks in Google’s ranking algorithm. Since Google views backlinks as signals of authority and trust, some website owners attempt to artificially create these signals through a controlled network of sites.

In a typical PBN setup, the owner acquires expired or aged domains that already have existing authority, backlinks, and history. These domains are rebuilt with new content and hosted separately, often using different IP addresses, hosting providers, themes, and ownership details to make them appear unrelated. Within the content published on these sites, links are strategically placed that point to the main website the owner wants to rank higher. By doing this, the owner attempts to pass link equity (also known as “link juice”) from the PBN sites to the target website.

The purpose of a PBN is to give the impression that the target website is naturally earning links from multiple independent sources. If done effectively, this can temporarily improve keyword rankings, increase organic visibility, and drive more traffic from search results.

Jasa Backlink

Download Anime Batch

Tinggalkan Komentar

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *