Replace the CNAME record in domains/dileepapeiris.json to point to dileepapeiris.github.io instead of portfolio-v2-1nb.pages.dev so the domain resolves to the GitHub Pages site.
Change the domain CNAME from portfolio.dileepapeiris5.workers.dev to https://portfolio-v2-1nb.pages.dev to point the record to the new Pages-hosted portfolio (migration to portfolio v2).
Add domains/dileepapeiris.json containing owner metadata (username and email) and a CNAME record pointing to portfolio.dileepapeiris5.workers.dev to register the domain configuration.