Closed AmoabaKelvin closed 5 months ago
Introduction of URL validation feature
The team has introduced a validateUrl
function across several files (link-actions.ts
, links.ts
, link-edit-form.tsx
, and quick-shorten.tsx
). This enhancement helps in analyzing the safety of a URL using Google's Safe Browsing API. It's a significant step to optimize web security and ensure all accessed links are safe.
Addition of error messages related to URL validation
An errorMessages
object was added in the constants.ts
file. This object contains various error messages that are associated with URL validation and authorization. Such addition aids in better troubleshooting and user informing when validation or authentication issues occur.
New file 'validation.ts' for URL validation
A new validation.ts
file has been introduced specifically for handling URL validation tasks using the Google Safe Browsing API. This ensures validation tasks are consolidated in one central place, simplifying maintenance and potential upgrades.
The latest updates on your projects. Learn more about Vercel for Git ↗︎